diff --git a/src/extension.ts b/src/extension.ts index 2dd723a4c7b954fc184117fae4c3d3303a58fe4c..e9c2999b2fb3d86cf25c830ac10559268a36c1fa 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -141,9 +141,9 @@ (configPath, pos) => { Workspace.openTextDocument(configPath).then((doc: TextDocument) => { Window.showTextDocument(doc).then((editor: TextEditor) => { /* -------------------------------------------------------------------------------------------- - LanguageClient, + if (uri.startsWith(element)) { /* -------------------------------------------------------------------------------------------- - LanguageClientOptions, + return Workspace.getWorkspaceFolder(Uri.parse(element))! editor.revealRange( new Range(start, end), TextEditorRevealType.InCenter