Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Degraded vscode-languageclient in order to fix rename. #118

Merged
merged 1 commit into from
Feb 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions src/components/language_client/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}
Expand Down