Skip to content

Commit

Permalink
v0.1.9 - hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Jan 29, 2019
1 parent 2328786 commit 2119957
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "For Modpack makers.",
"repository": "https://github.com/Yesterday17/ZenScript",
"license": "MIT",
"version": "0.1.8",
"version": "0.1.9",
"publisher": "yesterday17",
"engines": {
"vscode": "^1.30.0"
Expand Down
23 changes: 13 additions & 10 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,16 +196,19 @@ async function validateTextDocument(textDocument: TextDocument): Promise<void> {
const ast: ASTNodeProgram = ZSInterpreter.visit(
documentCSTs.get(textDocument.uri)
);
connection.console.log(
JSON.stringify({
type: ast.type,
import: ast.import,
global: Array.from(ast.global),
static: Array.from(ast.static),
function: Array.from(ast.function),
error: ast.errors,
})
);

if (ast) {
connection.console.log(
JSON.stringify({
type: ast.type,
import: ast.import,
global: Array.from(ast.global),
static: Array.from(ast.static),
function: Array.from(ast.function),
error: ast.errors,
})
);
}

// save errors
ZSParser.errors.map(error => {
Expand Down

0 comments on commit 2119957

Please sign in to comment.