aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/analyzer_status.ts
blob: 5c56b9c4cd53010d9d3dc7afe619e1bafaaf992f (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}