ad status command
This commit is contained in:
12
editors/code/src/commands/analyzer_status.ts
Normal file
12
editors/code/src/commands/analyzer_status.ts
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user