vscode: migrate analyzer_status to rust-analyzer-api.ts

This commit is contained in:
Veetaha 2020-02-25 00:50:14 +02:00
parent 8c4409b3bb
commit 603bc71a57

View File

@ -1,5 +1,6 @@
import * as vscode from 'vscode';
import * as ra from '../rust-analyzer-api';
import { Ctx, Cmd } from '../ctx';
// Shows status of rust-analyzer (for debugging)
@ -50,10 +51,7 @@ class TextDocumentContentProvider
const client = this.ctx.client;
if (!editor || !client) return '';
return client.sendRequest<string>(
'rust-analyzer/analyzerStatus',
null,
);
return client.sendRequest(ra.analyzerStatus, null);
}
get onDidChange(): vscode.Event<vscode.Uri> {