diff options
author | Ville Penttinen <[email protected]> | 2019-03-03 19:54:51 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-03-03 20:02:19 +0000 |
commit | 1b4e0ec1c868c7f2a0eef1e59bfa382db85a6900 (patch) | |
tree | 33b83144045989c7541746467d0b0855dce8bd01 /editors/code/src/events | |
parent | c2d3203d0c708dc2ccb7c0d017ae876180c0e5a8 (diff) |
Rename syntaxtree text provider to SyntaxTreeContentProvider
Diffstat (limited to 'editors/code/src/events')
-rw-r--r-- | editors/code/src/events/change_text_document.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/editors/code/src/events/change_text_document.ts b/editors/code/src/events/change_text_document.ts index 6be057245..89488bc61 100644 --- a/editors/code/src/events/change_text_document.ts +++ b/editors/code/src/events/change_text_document.ts | |||
@@ -1,20 +1,18 @@ | |||
1 | import * as vscode from 'vscode'; | 1 | import * as vscode from 'vscode'; |
2 | 2 | ||
3 | import { | 3 | import { |
4 | syntaxTreeUri, | 4 | SyntaxTreeContentProvider, |
5 | TextDocumentContentProvider | 5 | syntaxTreeUri |
6 | } from '../commands/syntaxTree'; | 6 | } from '../commands/syntaxTree'; |
7 | 7 | ||
8 | export function createHandler( | 8 | export function createHandler(syntaxTreeProvider: SyntaxTreeContentProvider) { |
9 | textDocumentContentProvider: TextDocumentContentProvider | ||
10 | ) { | ||
11 | return (event: vscode.TextDocumentChangeEvent) => { | 9 | return (event: vscode.TextDocumentChangeEvent) => { |
12 | const doc = event.document; | 10 | const doc = event.document; |
13 | if (doc.languageId !== 'rust') { | 11 | if (doc.languageId !== 'rust') { |
14 | return; | 12 | return; |
15 | } | 13 | } |
16 | afterLs(() => { | 14 | afterLs(() => { |
17 | textDocumentContentProvider.eventEmitter.fire(syntaxTreeUri); | 15 | syntaxTreeProvider.eventEmitter.fire(syntaxTreeUri); |
18 | }); | 16 | }); |
19 | }; | 17 | }; |
20 | } | 18 | } |