mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
Add an HIR pretty-printer
This commit is contained in:
parent
b6d59f2bb4
commit
dcbe892d7c
12 changed files with 914 additions and 203 deletions
|
@ -433,7 +433,7 @@ export function syntaxTree(ctx: Ctx): Cmd {
|
|||
// The contents of the file come from the `TextDocumentContentProvider`
|
||||
export function viewHir(ctx: Ctx): Cmd {
|
||||
const tdcp = new (class implements vscode.TextDocumentContentProvider {
|
||||
readonly uri = vscode.Uri.parse("rust-analyzer-hir://viewHir/hir.txt");
|
||||
readonly uri = vscode.Uri.parse("rust-analyzer-hir://viewHir/hir.rs");
|
||||
readonly eventEmitter = new vscode.EventEmitter<vscode.Uri>();
|
||||
constructor() {
|
||||
vscode.workspace.onDidChangeTextDocument(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue