Skip to content

Commit

Permalink
Merge pull request #315 from mbenedettini/windsurf
Browse files Browse the repository at this point in the history
  • Loading branch information
kahole authored Nov 19, 2024
2 parents 90ed355 + 78eb043 commit c7f6e53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/commitCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ function findCodePath(): string {
// Check if we are currently running a Code Insiders or Codium build
let isInsiders = vscode.env.appName.includes('Insider');
let isCodium = vscode.env.appRoot.includes('codium');
let isWindsurf = vscode.env.appName.includes('Windsurf');
let isDarwin = process.platform === 'darwin';
let isWindows = process.platform === 'win32';
let isRemote = !!vscode.env.remoteName;
Expand All @@ -215,6 +216,10 @@ function findCodePath(): string {
// On window remote server, 'code' alias doesn't exist
codePath += '.cmd';
}
if (isWindsurf && isDarwin) {
// Windsurf on Mac: is called 'windsurf'
codePath = 'windsurf';
}

// Find the code binary on different platforms.
if (isDarwin) {
Expand Down

0 comments on commit c7f6e53

Please sign in to comment.