diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-05-22 00:11:54 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonasschievink@gmail.com> | 2021-05-22 00:11:54 +0200 |
| commit | 463ecefc64a48d80b2c4591fd4a1b82ae62b2897 (patch) | |
| tree | 9ae9115957ab35a3bc7d2d446bce72031328af1a /editors/code | |
| parent | 3360053312af5063008d3d0e283c8a025ba7b10d (diff) | |
| download | rust-463ecefc64a48d80b2c4591fd4a1b82ae62b2897.tar.gz rust-463ecefc64a48d80b2c4591fd4a1b82ae62b2897.zip | |
Use `.rs` file ending to get syntax highlighting
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/src/commands.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index 8f672e68db5..0fdb9fe058f 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<vscode.Uri>(); constructor() { vscode.workspace.onDidChangeTextDocument(this.onDidChangeTextDocument, this, ctx.subscriptions); |
