File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
server/src/project/elements Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11// Core
2- import * as ts from "typescript" ;
3- import { Position , Range , SemanticTokenTypes } from 'vscode-languageserver' ;
2+ import { Range , SemanticTokenTypes } from 'vscode-languageserver' ;
43import { 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.
You can’t perform that action at this time.
0 commit comments