From 30dbc434e1901181eeb81b87b4f1d5ba20ca5b9b Mon Sep 17 00:00:00 2001 From: Alexey Date: Sun, 26 Feb 2017 10:23:17 +0300 Subject: [PATCH] Degraded vscode-languageclient in order to fix rename. (#118) --- package.json | 2 +- src/components/language_client/manager.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0fe861..9d29587 100644 --- a/package.json +++ b/package.json @@ -518,6 +518,6 @@ "tree-kill": "1.1.0", "find-up": "2.1.0", "elegant-spinner": "1.0.1", - "vscode-languageclient": "3.0.4" + "vscode-languageclient": "2.6.3" } } diff --git a/src/components/language_client/manager.ts b/src/components/language_client/manager.ts index 82897c8..38f4d96 100644 --- a/src/components/language_client/manager.ts +++ b/src/components/language_client/manager.ts @@ -45,11 +45,11 @@ export class Manager { this.languageClient.onDidChangeState(event => { if (event.newState === State.Running) { - this.languageClient.onNotification('rustDocument/diagnosticsBegin', () => { + this.languageClient.onNotification({ method: 'rustDocument/diagnosticsBegin' }, () => { this.statusBarItem.setText('Analysis started'); }); - this.languageClient.onNotification('rustDocument/diagnosticsEnd', () => { + this.languageClient.onNotification({ method: 'rustDocument/diagnosticsEnd' }, () => { this.statusBarItem.setText('Analysis finished'); }); }