aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-05-21 23:11:54 +0100
committerJonas Schievink <[email protected]>2021-05-21 23:11:54 +0100
commit463ecefc64a48d80b2c4591fd4a1b82ae62b2897 (patch)
tree9ae9115957ab35a3bc7d2d446bce72031328af1a /editors
parent3360053312af5063008d3d0e283c8a025ba7b10d (diff)
Use `.rs` file ending to get syntax highlighting
Diffstat (limited to 'editors')
-rw-r--r--editors/code/src/commands.ts2
1 files changed, 1 insertions, 1 deletions
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 {
431 431
432export function viewItemTree(ctx: Ctx): Cmd { 432export function viewItemTree(ctx: Ctx): Cmd {
433 const tdcp = new class implements vscode.TextDocumentContentProvider { 433 const tdcp = new class implements vscode.TextDocumentContentProvider {
434 readonly uri = vscode.Uri.parse('rust-analyzer://viewItemTree/itemtree.txt'); 434 readonly uri = vscode.Uri.parse('rust-analyzer://viewItemTree/itemtree.rs');
435 readonly eventEmitter = new vscode.EventEmitter<vscode.Uri>(); 435 readonly eventEmitter = new vscode.EventEmitter<vscode.Uri>();
436 constructor() { 436 constructor() {
437 vscode.workspace.onDidChangeTextDocument(this.onDidChangeTextDocument, this, ctx.subscriptions); 437 vscode.workspace.onDidChangeTextDocument(this.onDidChangeTextDocument, this, ctx.subscriptions);