Skip to content

Commit 4a34c1f

Browse files
committed
Do not set context keys along with painting background
1 parent f1aa3fb commit 4a34c1f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

apps/vscode/src/providers/background.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import { isQuartoDoc, kQuartoDocSelector } from "../core/doc";
2222
import { MarkdownEngine } from "../markdown/engine";
2323
import { isExecutableLanguageBlock } from "quarto-core";
2424
import { vscRange } from "../core/range";
25-
import { mainLanguage } from "../vdoc/vdoc";
2625

2726
export function activateBackgroundHighlighter(
2827
context: vscode.ExtensionContext,
@@ -163,10 +162,6 @@ async function setEditorHighlightDecorations(
163162
blockRanges.push(vscRange(block.range));
164163
}
165164

166-
// expose cell language for use in keybindings, etc
167-
const language = mainLanguage(tokens);
168-
vscode.commands.executeCommand('setContext', 'quartoLangId', language?.ids[0]);
169-
170165
// find inline executable code
171166
for (let i = 0; i < editor.document.lineCount; i++) {
172167
const line = editor.document.lineAt(i);

0 commit comments

Comments
 (0)