Skip to content

Commit

Permalink
fix(web): fix not auto import typings when switch paths (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Mar 14, 2024
1 parent e9d012d commit f7ab0dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/components/Editor/TSEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ export default function TSEditor(props: {
editorRef.current?.setPosition(pos);
editorRef.current?.revealPositionInCenter(pos);
}

autoImportTypings.parse(value, monacoRef.current);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [path]);

Expand Down

0 comments on commit f7ab0dd

Please sign in to comment.