Skip to content

Commit

Permalink
Do not set context keys along with painting background
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Nov 26, 2024
1 parent f1aa3fb commit 4a34c1f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions apps/vscode/src/providers/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4a34c1f

Please sign in to comment.