diff options
author | Aleksey Kladov <[email protected]> | 2019-01-28 11:43:07 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-28 12:01:22 +0000 |
commit | d1a67c1174abfb99b67b8db89c9f27c741e85057 (patch) | |
tree | b589fcf2ee7d816f3f18bd83b8e88738dcb6fd4f /editors/code/src/commands/analyzer_status.ts | |
parent | 7abe1f422c1a1230ad5b39474101806c438ef452 (diff) |
align command naming
Diffstat (limited to 'editors/code/src/commands/analyzer_status.ts')
-rw-r--r-- | editors/code/src/commands/analyzer_status.ts | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/code/src/commands/analyzer_status.ts b/editors/code/src/commands/analyzer_status.ts index bb46a1990..63f82c92d 100644 --- a/editors/code/src/commands/analyzer_status.ts +++ b/editors/code/src/commands/analyzer_status.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | import { Server } from '../server'; | 2 | import { Server } from '../server'; |
3 | 3 | ||
4 | const statusUri = vscode.Uri.parse('ra-lsp-status://status'); | 4 | const statusUri = vscode.Uri.parse('rust-analyzer-status://status'); |
5 | 5 | ||
6 | export class TextDocumentContentProvider | 6 | export class TextDocumentContentProvider |
7 | implements vscode.TextDocumentContentProvider { | 7 | implements vscode.TextDocumentContentProvider { |
@@ -15,7 +15,10 @@ export class TextDocumentContentProvider | |||
15 | if (editor == null) { | 15 | if (editor == null) { |
16 | return ''; | 16 | return ''; |
17 | } | 17 | } |
18 | return Server.client.sendRequest<string>('ra/analyzerStatus', null); | 18 | return Server.client.sendRequest<string>( |
19 | 'rust-analyzer/analyzerStatus', | ||
20 | null | ||
21 | ); | ||
19 | } | 22 | } |
20 | 23 | ||
21 | get onDidChange(): vscode.Event<vscode.Uri> { | 24 | get onDidChange(): vscode.Event<vscode.Uri> { |
@@ -31,7 +34,7 @@ export function makeCommand(context: vscode.ExtensionContext) { | |||
31 | const textDocumentContentProvider = new TextDocumentContentProvider(); | 34 | const textDocumentContentProvider = new TextDocumentContentProvider(); |
32 | context.subscriptions.push( | 35 | context.subscriptions.push( |
33 | vscode.workspace.registerTextDocumentContentProvider( | 36 | vscode.workspace.registerTextDocumentContentProvider( |
34 | 'ra-lsp-status', | 37 | 'rust-analyzer-status', |
35 | textDocumentContentProvider | 38 | textDocumentContentProvider |
36 | ) | 39 | ) |
37 | ); | 40 | ); |