Skip to content

Commit dab31ff

Browse files
authored
Merge pull request #31 from SSlinky/dev
Hotfix
2 parents afa3a66 + 13c1af5 commit dab31ff

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"icon": "images/vba-lsp-icon.png",
77
"author": "SSlinky",
88
"license": "MIT",
9-
"version": "1.4.5",
9+
"version": "1.4.7",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/SSlinky/VBA-LanguageServer"
@@ -118,7 +118,7 @@
118118
]
119119
},
120120
"scripts": {
121-
"vscode:prepublish": "npm run antlr4ngPre && npm run antlr4ng && npm run compile",
121+
"vscode:prepublish": "npm run antlr4ngPre && npm run antlr4ng && npm run textMate && npm run compile",
122122
"compile": "tsc -b",
123123
"watch": "tsc -b -w",
124124
"lint": "eslint ./client/src ./server/src --ext .ts,.tsx",

server/src/project/elements/precompiled.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Core
2-
import * as ts from "typescript";
3-
import { Position, Range, SemanticTokenTypes } from 'vscode-languageserver';
2+
import { Range, SemanticTokenTypes } from 'vscode-languageserver';
43
import { TextDocument } from 'vscode-languageserver-textdocument';
54

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

8483
// Evaluate the expression and return the result.
85-
const result = eval(ts.transpile(tsExpression));
84+
const result = eval(tsExpression);
8685
if (!(typeof result === "boolean")) {
8786
// TODO: Return false here instead of throwing
8887
// and return an error diagnostic for the expression.

0 commit comments

Comments
 (0)