mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +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);
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue