]> git.lizzy.rs Git - rust.git/blobdiff - editors/code/src/highlighting.ts
Add config to Ctx
[rust.git] / editors / code / src / highlighting.ts
index ced78adc110c55eba1c226ebc5b26de202ef94e6..0f9271de2610ccfada9eb76c58b4a63830c128e9 100644 (file)
@@ -12,7 +12,7 @@ export function activateHighlighting(ctx: Ctx) {
     vscode.window.onDidChangeActiveTextEditor(
         async (editor: vscode.TextEditor | undefined) => {
             if (!editor || editor.document.languageId !== 'rust') return;
-            if (!Server.config.highlightingOn) return;
+            if (!ctx.config.highlightingOn) return;
 
             const params: lc.TextDocumentIdentifier = {
                 uri: editor.document.uri.toString(),