Log to info

This commit is contained in:
Kolja Lampe
2019-01-27 18:01:16 +01:00
parent aa62beaa62
commit 376862fb7d

View File

@@ -33,7 +33,7 @@ export class ASTProvider {
}
protected handleOpenTextDocument = async (params: DidOpenTextDocumentParams): Promise<void> => {
this.connection.console.log("Opened text document, going to parse it");
this.connection.console.info("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);
@@ -42,7 +42,7 @@ export class ASTProvider {
protected handleChangeTextDocument = async (
params: DidChangeTextDocumentParams,
): Promise<void> => {
this.connection.console.log("Changed text document, going to parse it");
this.connection.console.info("Changed text document, going to parse it");
const document: VersionedTextDocumentIdentifier = params.textDocument;
let tree: Tree = this.forest.getTree(document.uri);
if (tree !== undefined) {