ad status command

This commit is contained in:
Aleksey Kladov 2019-01-23 00:15:03 +03:00
parent e08df3219d
commit 0ba7e2eaeb
10 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import * as vscode from 'vscode';
import { Server } from '../server';
// Shows status of rust-analyzer (for debugging)
export async function handle() {
const status = await Server.client.sendRequest<string>(
'ra/analyzerStatus',
null
);
const doc = await vscode.workspace.openTextDocument({ content: status });
await vscode.window.showTextDocument(doc, vscode.ViewColumn.Two);
}

View file

@ -1,3 +1,4 @@
import * as analyzerStatus from './analyzer_status';
import * as applySourceChange from './apply_source_change';
import * as extendSelection from './extend_selection';
import * as joinLines from './join_lines';
@ -8,6 +9,7 @@ import * as runnables from './runnables';
import * as syntaxTree from './syntaxTree';
export {
analyzerStatus,
applySourceChange,
extendSelection,
joinLines,