Skip to content

Commit e41e57a

Browse files
committed
fix: only call prepareExecutable for syntax server when needed
Signed-off-by: Fred Bricon <fbricon@gmail.com>
1 parent caca5a7 commit e41e57a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
422422
// the promise is resolved
423423
// no need to pass `resolve` into any code past this point,
424424
// since `resolve` is a no-op from now on
425-
const serverOptions = prepareExecutable(requirements, syntaxServerWorkspacePath, context, true);
426-
excutable.resolve(serverOptions);
427425
if (requireSyntaxServer) {
426+
const serverOptions = prepareExecutable(requirements, syntaxServerWorkspacePath, context, true);
427+
excutable.resolve(serverOptions);
428428
if (process.env['SYNTAXLS_CLIENT_PORT']) {
429429
syntaxClient.initialize(requirements, clientOptions);
430430
} else {

0 commit comments

Comments
 (0)