aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/analyzer_status.ts
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-22 21:15:03 +0000
committerAleksey Kladov <[email protected]>2019-01-22 22:24:53 +0000
commit0ba7e2eaebf335dbc31b5d6dbc9c354737c7fe54 (patch)
tree9adf247619c28ed5e7cdeee118897231d8f2320c /editors/code/src/commands/analyzer_status.ts
parente08df3219d7a06b1e38c632e7f13967fb540769b (diff)
ad status command
Diffstat (limited to 'editors/code/src/commands/analyzer_status.ts')
-rw-r--r--editors/code/src/commands/analyzer_status.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/editors/code/src/commands/analyzer_status.ts b/editors/code/src/commands/analyzer_status.ts
new file mode 100644
index 000000000..5c56b9c4c
--- /dev/null
+++ b/editors/code/src/commands/analyzer_status.ts
@@ -0,0 +1,12 @@
1import * as vscode from 'vscode';
2import { Server } from '../server';
3
4// Shows status of rust-analyzer (for debugging)
5export async function handle() {
6 const status = await Server.client.sendRequest<string>(
7 'ra/analyzerStatus',
8 null
9 );
10 const doc = await vscode.workspace.openTextDocument({ content: status });
11 await vscode.window.showTextDocument(doc, vscode.ViewColumn.Two);
12}