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

Commit

Permalink
Updated language client (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
KalitaAlexey authored Mar 27, 2017
1 parent da4cbac commit efd1db1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -540,18 +540,18 @@
"gulp-shell": "0.5.2",
"gulp-tslint": "7.1.0",
"mocha": "3.2.0",
"tslint": "4.4.2",
"typescript": "2.1.6",
"vscode": "1.0.3",
"@types/node": "7.0.5",
"@types/mocha": "2.2.39"
"tslint": "4.5.1",
"typescript": "2.2.1",
"vscode": "1.1.0",
"@types/node": "7.0.11",
"@types/mocha": "2.2.40"
},
"dependencies": {
"expand-tilde": "2.0.2",
"tmp": "0.0.31",
"tree-kill": "1.1.0",
"find-up": "2.1.0",
"elegant-spinner": "1.0.1",
"vscode-languageclient": "2.6.3"
"vscode-languageclient": "3.2.0"
}
}
4 changes: 2 additions & 2 deletions src/components/language_client/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ export class Manager {
private subscribeOnStateChanging(): void {
this.languageClient.onDidChangeState(event => {
if (event.newState === State.Running) {
this.languageClient.onNotification({ method: 'rustDocument/diagnosticsBegin' }, () => {
this.languageClient.onNotification('rustDocument/diagnosticsBegin', () => {
this.statusBarItem.setText('Analysis started');
});

this.languageClient.onNotification({ method: 'rustDocument/diagnosticsEnd' }, () => {
this.languageClient.onNotification('rustDocument/diagnosticsEnd', () => {
this.statusBarItem.setText('Analysis finished');
});
}
Expand Down

0 comments on commit efd1db1

Please sign in to comment.