Skip to content

Commit

Permalink
Fix definitions not including non-tmLanguage.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Jan 10, 2024
1 parent 0d5cc1c commit ed0226b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DefinitionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export const DefinitionProvider = {
for (const grammar of grammars) {
if (grammar.scopeName == scopeName) {
const uri = vscode.Uri.joinPath(extension.extensionUri, grammar.path);
await vscode.workspace.openTextDocument(uri);
const document = await vscode.workspace.openTextDocument(uri);
vscode.languages.setTextDocumentLanguage(document, 'json-textmate');
}
}
}
Expand Down

0 comments on commit ed0226b

Please sign in to comment.