Use .rs file ending to get syntax highlighting

This commit is contained in:
Jonas Schievink 2021-05-22 00:11:54 +02:00
parent 3360053312
commit 463ecefc64

View file

@ -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);