Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"icon": "images/vba-lsp-icon.png",
"author": "SSlinky",
"license": "MIT",
"version": "1.4.5",
"version": "1.4.7",
"repository": {
"type": "git",
"url": "https://github.com/SSlinky/VBA-LanguageServer"
Expand Down Expand Up @@ -118,7 +118,7 @@
]
},
"scripts": {
"vscode:prepublish": "npm run antlr4ngPre && npm run antlr4ng && npm run compile",
"vscode:prepublish": "npm run antlr4ngPre && npm run antlr4ng && npm run textMate && npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",
Expand Down
5 changes: 2 additions & 3 deletions server/src/project/elements/precompiled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Core
import * as ts from "typescript";
import { Position, Range, SemanticTokenTypes } from 'vscode-languageserver';
import { Range, SemanticTokenTypes } from 'vscode-languageserver';
import { TextDocument } from 'vscode-languageserver-textdocument';

// Antlr
Expand Down Expand Up @@ -82,7 +81,7 @@ class CompilerConditionBlock extends BaseContextSyntaxElement<CompilerConditiona
const tsExpression = this.transpileVbaToTypescript(vbaExpression);

// Evaluate the expression and return the result.
const result = eval(ts.transpile(tsExpression));
const result = eval(tsExpression);
if (!(typeof result === "boolean")) {
// TODO: Return false here instead of throwing
// and return an error diagnostic for the expression.
Expand Down
Loading