Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytroHryshyn committed Jan 29, 2024
1 parent 6037635 commit 28d761d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/buildArguments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ const buildGlobPattern = (targetUri: Uri, pattern?: string) => {
const { fsPath: targetUriFsPath } = targetUri;

// Glob patterns should always use / as a path separator, even on Windows systems, as \ is used to escape glob characters.
return targetUriFsPath
.split(sep)
.join('/')
.concat(pattern ?? '');
const pathParts = targetUriFsPath.split(sep);

pathParts.push(pattern ?? '');

return pathParts.join('/');
};

export const buildArguments = (
Expand Down

0 comments on commit 28d761d

Please sign in to comment.