From 233f1dd2a850a7c8c6947c88c1ce06f7a945befd Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 23:12:33 +0100 Subject: Privatize highlighting --- editors/code/src/main.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'editors/code/src/main.ts') diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 345ae0685..20a3ea119 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -4,7 +4,6 @@ import * as lc from 'vscode-languageclient'; import * as commands from './commands'; import { activateInlayHints } from './inlay_hints'; import { StatusDisplay } from './status_display'; -import * as notifications from './notifications'; import { Server } from './server'; import { Ctx } from './ctx'; import { activateHighlighting } from './highlighting'; @@ -35,14 +34,8 @@ export async function activate(context: vscode.ExtensionContext) { const watchStatus = new StatusDisplay(ctx.config.cargoWatchOptions.command); ctx.pushCleanup(watchStatus); - activateHighlighting(ctx); - // Notifications are events triggered by the language server const allNotifications: [string, lc.GenericNotificationHandler][] = [ - [ - 'rust-analyzer/publishDecorations', - notifications.publishDecorations.handle, - ], [ '$/progress', params => watchStatus.handleProgressNotification(params), @@ -61,6 +54,8 @@ export async function activate(context: vscode.ExtensionContext) { vscode.window.showErrorMessage(e.message); } + activateHighlighting(ctx); + if (ctx.config.displayInlayHints) { activateInlayHints(ctx); } -- cgit v1.2.3