diff --git a/src/client.ts b/src/client.ts index 31babc8..076cbfa 100644 --- a/src/client.ts +++ b/src/client.ts @@ -14,9 +14,7 @@ import commandExists = require("command-exists"); let client: LanguageClient; export async function activate(context: ExtensionContext): Promise { - const cmdExists = await commandExists(config.serverPath); - - if (!cmdExists) { + if (!commandExists.sync(config.serverPath)) { const selection = await window.showErrorMessage( `Command ${config.serverPath} not found in $PATH`, {