mirror of
https://github.com/jlengrand/elm-language-client-vscode.git
synced 2026-03-10 08:11:17 +00:00
Add log
This commit is contained in:
@@ -33,14 +33,16 @@ export class ASTProvider {
|
||||
}
|
||||
|
||||
protected handleOpenTextDocument = async (params: DidOpenTextDocumentParams): Promise<void> => {
|
||||
this.connection.console.log('Opened text document, going to parse it');
|
||||
const document: TextDocumentItem = params.textDocument;
|
||||
const tree: Tree = this.parser.parse(document.text);
|
||||
this.forest.setTree(document.uri, tree);
|
||||
};
|
||||
|
||||
|
||||
protected handleChangeTextDocument = async (
|
||||
params: DidChangeTextDocumentParams
|
||||
): Promise<void> => {
|
||||
): Promise<void> => {
|
||||
this.connection.console.log('Changed text document, going to parse it');
|
||||
const document: VersionedTextDocumentIdentifier = params.textDocument;
|
||||
let tree: Tree = this.forest.getTree(document.uri);
|
||||
if (tree !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user