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);
}