mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
ad status command
This commit is contained in:
parent
e08df3219d
commit
0ba7e2eaeb
10 changed files with 68 additions and 0 deletions
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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue