Skip to content

Commit

Permalink
Better error message wording
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Sep 26, 2024
1 parent 6ca439a commit 1c6dcf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LanguageServerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ export class LanguageServerManager {
this.selectedBscInfo = await this.ensureBscVersionInstalled(versionInfo);
} catch (e) {
console.error(e);
//fall back to the embedded version, and show a popup
await vscode.window.showErrorMessage(`Can't find language server for "${versionInfo}". Did you forget to run \`npm install\`? Using embedded version v${this.embeddedBscInfo.version} instead.`);
//fall back to the embedded version, and show a popup (don't await the popup because that blocks this flow)
void vscode.window.showErrorMessage(`Language server failure. Did you forget \`npm install\`? Using embedded version ${this.embeddedBscInfo.version}. Can't find language server for "${versionInfo}"`);
this.selectedBscInfo = this.embeddedBscInfo;
}

Expand Down

0 comments on commit 1c6dcf4

Please sign in to comment.