diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-17 13:24:07 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-17 13:24:07 +0000 |
commit | 4fea5808e9209c385e915d9d060c18520ce081b3 (patch) | |
tree | b1b3be960ba393200c6676fa096f8c1e12e64cc2 /editors/code/src/commands/analyzer_status.ts | |
parent | 6167101302bcc2d7f1a345e0ee44e1411056b4b3 (diff) | |
parent | 3717b0e03f2336dcccea34c5a362b20966151b18 (diff) |
Merge #3191
3191: Remove two stage constuction r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code/src/commands/analyzer_status.ts')
-rw-r--r-- | editors/code/src/commands/analyzer_status.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/code/src/commands/analyzer_status.ts b/editors/code/src/commands/analyzer_status.ts index cfe7d1af0..6631e8db7 100644 --- a/editors/code/src/commands/analyzer_status.ts +++ b/editors/code/src/commands/analyzer_status.ts | |||
@@ -37,12 +37,10 @@ export function analyzerStatus(ctx: Ctx): Cmd { | |||
37 | 37 | ||
38 | class TextDocumentContentProvider | 38 | class TextDocumentContentProvider |
39 | implements vscode.TextDocumentContentProvider { | 39 | implements vscode.TextDocumentContentProvider { |
40 | private ctx: Ctx; | ||
41 | uri = vscode.Uri.parse('rust-analyzer-status://status'); | 40 | uri = vscode.Uri.parse('rust-analyzer-status://status'); |
42 | eventEmitter = new vscode.EventEmitter<vscode.Uri>(); | 41 | eventEmitter = new vscode.EventEmitter<vscode.Uri>(); |
43 | 42 | ||
44 | constructor(ctx: Ctx) { | 43 | constructor(private readonly ctx: Ctx) { |
45 | this.ctx = ctx; | ||
46 | } | 44 | } |
47 | 45 | ||
48 | provideTextDocumentContent( | 46 | provideTextDocumentContent( |