Skip to content

Commit

Permalink
On Windows, try 'effekt.cmd' first
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Sep 29, 2024
1 parent 71ae96e commit 36d28ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/effektManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ export class EffektManager {
private effektVersion: string | null = null;

private readonly effektNPMPackage: string = '@effekt-lang/effekt';
private readonly possibleEffektExecutables = ['effekt', 'effekt.sh', 'effekt.cmd'];
private readonly possibleEffektExecutables =
process.platform === 'win32'
? ['effekt.cmd', 'effekt', 'effekt.sh'] // On Windows, try 'effekt.cmd' first.
: ['effekt', 'effekt.sh', 'effekt.cmd'];

constructor() {
this.statusBarItem = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left);
Expand Down

0 comments on commit 36d28ee

Please sign in to comment.