Fix(CodeEditor): Fix incorrect highlight jump

This commit is contained in:
2024-10-27 00:51:17 +08:00
parent a48187bb4e
commit 13e2cebe04

View File

@@ -84,7 +84,7 @@ const Editor = ({
input: { options: { selection: Selection }; resource: { path: string } } input: { options: { selection: Selection }; resource: { path: string } }
) { ) {
const path = input.resource.path 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('/', '')) onJumpFile?.(path.replace('/', ''))
doOpenEditor(editor, input) doOpenEditor(editor, input)
} }