mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Run prettier on all files
This commit is contained in:
parent
9bfeac708d
commit
ac3d0e8340
7 changed files with 18 additions and 23 deletions
|
@ -23,10 +23,7 @@ export function analyzerStatus(ctx: Ctx): Cmd {
|
|||
|
||||
return async function handle() {
|
||||
if (poller == null) {
|
||||
poller = setInterval(
|
||||
() => tdcp.eventEmitter.fire(tdcp.uri),
|
||||
1000,
|
||||
);
|
||||
poller = setInterval(() => tdcp.eventEmitter.fire(tdcp.uri), 1000);
|
||||
}
|
||||
const document = await vscode.workspace.openTextDocument(tdcp.uri);
|
||||
return vscode.window.showTextDocument(
|
||||
|
@ -39,13 +36,12 @@ export function analyzerStatus(ctx: Ctx): Cmd {
|
|||
|
||||
class TextDocumentContentProvider
|
||||
implements vscode.TextDocumentContentProvider {
|
||||
|
||||
ctx: Ctx
|
||||
ctx: Ctx;
|
||||
uri = vscode.Uri.parse('rust-analyzer-status://status');
|
||||
eventEmitter = new vscode.EventEmitter<vscode.Uri>();
|
||||
|
||||
constructor(ctx: Ctx) {
|
||||
this.ctx = ctx
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
provideTextDocumentContent(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue