diff --git a/src/renderer/src/components/Playground/CodeEditor/Editor/index.tsx b/src/renderer/src/components/Playground/CodeEditor/Editor/index.tsx index d06954b..bb4b9db 100644 --- a/src/renderer/src/components/Playground/CodeEditor/Editor/index.tsx +++ b/src/renderer/src/components/Playground/CodeEditor/Editor/index.tsx @@ -84,7 +84,7 @@ const Editor = ({ input: { options: { selection: Selection }; resource: { path: string } } ) { const path = input.resource.path - if (!path.startsWith('/node_modules/')) { + if (!['/lib.dom.d.ts', '/node_modules/'].some((item) => path.startsWith(item))) { onJumpFile?.(path.replace('/', '')) doOpenEditor(editor, input) }