From 7b7c84bf045d0b4dae6cf0b5acb3602ec0822e3e Mon Sep 17 00:00:00 2001 From: RedCMD Date: Fri, 25 Oct 2024 17:25:26 +1300 Subject: [PATCH] Fix gotoGrammar wrong document --- src/Providers/TreeDataProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/TreeDataProvider.ts b/src/Providers/TreeDataProvider.ts index f706ca3..b85f07b 100644 --- a/src/Providers/TreeDataProvider.ts +++ b/src/Providers/TreeDataProvider.ts @@ -967,7 +967,7 @@ async function gotoGrammar(element: element) { new vscode.Position(0, 0), [ new vscode.Location( - document.uri, + uri, new vscode.Range(0, 0, document.lineCount, 0), ) ],