Add config to Ctx

This commit is contained in:
Aleksey Kladov 2019-12-30 20:46:14 +01:00
parent 7646dc046e
commit efbbc903e6
4 changed files with 10 additions and 9 deletions

View 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(),