diff options
author | Aleksey Kladov <[email protected]> | 2020-02-17 13:23:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-17 13:23:23 +0000 |
commit | 3717b0e03f2336dcccea34c5a362b20966151b18 (patch) | |
tree | b1b3be960ba393200c6676fa096f8c1e12e64cc2 /editors/code/src/commands/expand_macro.ts | |
parent | 3c12cd49ecf8bdcd8c4ce82cb449836b7a02d4fb (diff) |
Simplify some more ctors
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> { |