Skip to content

Commit

Permalink
Switch to using a language ID
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Nov 21, 2024
1 parent 530aa48 commit 262ef4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/vscode/src/vdoc/vdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ export function languageAtPosition(tokens: Token[], position: Position) {
if (block) {
const language = languageFromBlock(block);
// expose cell language for use in keybindings, etc
commands.executeCommand('setContext', 'quarto.cellLang', language?.extension);
commands.executeCommand('setContext', 'quarto.cellLangId', language?.ids[0]);
return language;
} else {
commands.executeCommand('setContext', 'quarto.cellLang', undefined);
commands.executeCommand('setContext', 'quarto.cellLangId', undefined);
return undefined;
}
}
Expand Down

0 comments on commit 262ef4d

Please sign in to comment.