diff options
author | Veetaha <[email protected]> | 2020-02-24 22:50:14 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-02-24 22:50:14 +0000 |
commit | 603bc71a57ce386d78f1b1c842714ff0dbeeaf9c (patch) | |
tree | f8b21011132e6a0895387a4fbf2157e48c7167ff /editors | |
parent | 8c4409b3bb6dcdc439c7ea98dfb89c0181969323 (diff) |
vscode: migrate analyzer_status to rust-analyzer-api.ts
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/commands/analyzer_status.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editors/code/src/commands/analyzer_status.ts b/editors/code/src/commands/analyzer_status.ts index 6631e8db7..1c6ea399b 100644 --- a/editors/code/src/commands/analyzer_status.ts +++ b/editors/code/src/commands/analyzer_status.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | 2 | ||
3 | import * as ra from '../rust-analyzer-api'; | ||
3 | import { Ctx, Cmd } from '../ctx'; | 4 | import { Ctx, Cmd } from '../ctx'; |
4 | 5 | ||
5 | // Shows status of rust-analyzer (for debugging) | 6 | // Shows status of rust-analyzer (for debugging) |
@@ -50,10 +51,7 @@ class TextDocumentContentProvider | |||
50 | const client = this.ctx.client; | 51 | const client = this.ctx.client; |
51 | if (!editor || !client) return ''; | 52 | if (!editor || !client) return ''; |
52 | 53 | ||
53 | return client.sendRequest<string>( | 54 | return client.sendRequest(ra.analyzerStatus, null); |
54 | 'rust-analyzer/analyzerStatus', | ||
55 | null, | ||
56 | ); | ||
57 | } | 55 | } |
58 | 56 | ||
59 | get onDidChange(): vscode.Event<vscode.Uri> { | 57 | get onDidChange(): vscode.Event<vscode.Uri> { |