diff options
Diffstat (limited to 'editors/code/src/commands/expand_macro.ts')
-rw-r--r-- | editors/code/src/commands/expand_macro.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/code/src/commands/expand_macro.ts b/editors/code/src/commands/expand_macro.ts index dcdde78af..6fee6eb41 100644 --- a/editors/code/src/commands/expand_macro.ts +++ b/editors/code/src/commands/expand_macro.ts | |||
@@ -42,12 +42,10 @@ function code_format(expanded: ExpandedMacro): string { | |||
42 | 42 | ||
43 | class TextDocumentContentProvider | 43 | class TextDocumentContentProvider |
44 | implements vscode.TextDocumentContentProvider { | 44 | implements vscode.TextDocumentContentProvider { |
45 | private ctx: Ctx; | ||
46 | uri = vscode.Uri.parse('rust-analyzer://expandMacro/[EXPANSION].rs'); | 45 | uri = vscode.Uri.parse('rust-analyzer://expandMacro/[EXPANSION].rs'); |
47 | eventEmitter = new vscode.EventEmitter<vscode.Uri>(); | 46 | eventEmitter = new vscode.EventEmitter<vscode.Uri>(); |
48 | 47 | ||
49 | constructor(ctx: Ctx) { | 48 | constructor(private readonly ctx: Ctx) { |
50 | this.ctx = ctx; | ||
51 | } | 49 | } |
52 | 50 | ||
53 | async provideTextDocumentContent(_uri: vscode.Uri): Promise<string> { | 51 | async provideTextDocumentContent(_uri: vscode.Uri): Promise<string> { |