mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
vscode: migrate analyzer_status to rust-analyzer-api.ts
This commit is contained in:
parent
8c4409b3bb
commit
603bc71a57
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
||||||
import * as vscode from 'vscode';
|
import * as vscode from 'vscode';
|
||||||
|
|
||||||
|
import * as ra from '../rust-analyzer-api';
|
||||||
import { Ctx, Cmd } from '../ctx';
|
import { Ctx, Cmd } from '../ctx';
|
||||||
|
|
||||||
// Shows status of rust-analyzer (for debugging)
|
// Shows status of rust-analyzer (for debugging)
|
||||||
|
@ -50,10 +51,7 @@ class TextDocumentContentProvider
|
||||||
const client = this.ctx.client;
|
const client = this.ctx.client;
|
||||||
if (!editor || !client) return '';
|
if (!editor || !client) return '';
|
||||||
|
|
||||||
return client.sendRequest<string>(
|
return client.sendRequest(ra.analyzerStatus, null);
|
||||||
'rust-analyzer/analyzerStatus',
|
|
||||||
null,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get onDidChange(): vscode.Event<vscode.Uri> {
|
get onDidChange(): vscode.Event<vscode.Uri> {
|
||||||
|
|
Loading…
Reference in a new issue