aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/syntax_tree.ts
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-17 13:24:07 +0000
committerGitHub <[email protected]>2020-02-17 13:24:07 +0000
commit4fea5808e9209c385e915d9d060c18520ce081b3 (patch)
treeb1b3be960ba393200c6676fa096f8c1e12e64cc2 /editors/code/src/commands/syntax_tree.ts
parent6167101302bcc2d7f1a345e0ee44e1411056b4b3 (diff)
parent3717b0e03f2336dcccea34c5a362b20966151b18 (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/syntax_tree.ts')
-rw-r--r--editors/code/src/commands/syntax_tree.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts
index 7dde66ad1..2887c96c8 100644
--- a/editors/code/src/commands/syntax_tree.ts
+++ b/editors/code/src/commands/syntax_tree.ts
@@ -68,12 +68,10 @@ interface SyntaxTreeParams {
68 68
69class TextDocumentContentProvider 69class TextDocumentContentProvider
70 implements vscode.TextDocumentContentProvider { 70 implements vscode.TextDocumentContentProvider {
71 private ctx: Ctx;
72 uri = vscode.Uri.parse('rust-analyzer://syntaxtree'); 71 uri = vscode.Uri.parse('rust-analyzer://syntaxtree');
73 eventEmitter = new vscode.EventEmitter<vscode.Uri>(); 72 eventEmitter = new vscode.EventEmitter<vscode.Uri>();
74 73
75 constructor(ctx: Ctx) { 74 constructor(private readonly ctx: Ctx) {
76 this.ctx = ctx;
77 } 75 }
78 76
79 provideTextDocumentContent(uri: vscode.Uri): vscode.ProviderResult<string> { 77 provideTextDocumentContent(uri: vscode.Uri): vscode.ProviderResult<string> {