From 4a34c1fcf441948e5b8ed1c80cb08dba4b9dcd54 Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Tue, 26 Nov 2024 11:58:45 -0700 Subject: [PATCH] Do not set context keys along with painting background --- apps/vscode/src/providers/background.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/vscode/src/providers/background.ts b/apps/vscode/src/providers/background.ts index 45ada799..2aae39d7 100644 --- a/apps/vscode/src/providers/background.ts +++ b/apps/vscode/src/providers/background.ts @@ -22,7 +22,6 @@ import { isQuartoDoc, kQuartoDocSelector } from "../core/doc"; import { MarkdownEngine } from "../markdown/engine"; import { isExecutableLanguageBlock } from "quarto-core"; import { vscRange } from "../core/range"; -import { mainLanguage } from "../vdoc/vdoc"; export function activateBackgroundHighlighter( context: vscode.ExtensionContext, @@ -163,10 +162,6 @@ async function setEditorHighlightDecorations( blockRanges.push(vscRange(block.range)); } - // expose cell language for use in keybindings, etc - const language = mainLanguage(tokens); - vscode.commands.executeCommand('setContext', 'quartoLangId', language?.ids[0]); - // find inline executable code for (let i = 0; i < editor.document.lineCount; i++) { const line = editor.document.lineAt(i);