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

Commit

Permalink
Degraded vscode-languageclient in order to fix rename. (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
KalitaAlexey authored Feb 26, 2017
1 parent 47d440e commit 30dbc43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 30dbc43

Please sign in to comment.