Skip to content

Commit

Permalink
Normalize path separator before calculating cwd on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
balthild authored and d8vjork committed Feb 15, 2024
1 parent acfa981 commit 0ce383a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModuleResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ModuleResolver {

const cmd = getWorkspaceConfig('executablePath', path.posix.join(...DEFAULT_EXEC_PATH));

const cwd = executable.replace( cmd, '' );
const cwd = path.normalize(executable).replace(path.normalize(cmd), '');

return new PhpCommand(cmd, await this.getPintConfigAsArgs(workspaceFolder, input), cwd);
}
Expand Down

0 comments on commit 0ce383a

Please sign in to comment.