From 463ecefc64a48d80b2c4591fd4a1b82ae62b2897 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sat, 22 May 2021 00:11:54 +0200 Subject: Use `.rs` file ending to get syntax highlighting --- editors/code/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors/code/src') diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 8f672e68d..0fdb9fe05 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -431,7 +431,7 @@ export function viewHir(ctx: Ctx): Cmd { export function viewItemTree(ctx: Ctx): Cmd { const tdcp = new class implements vscode.TextDocumentContentProvider { - readonly uri = vscode.Uri.parse('rust-analyzer://viewItemTree/itemtree.txt'); + readonly uri = vscode.Uri.parse('rust-analyzer://viewItemTree/itemtree.rs'); readonly eventEmitter = new vscode.EventEmitter(); constructor() { vscode.workspace.onDidChangeTextDocument(this.onDidChangeTextDocument, this, ctx.subscriptions); -- cgit v1.2.3