Skip to content

Commit

Permalink
parse untracked paths as paths and not uris (fixes #281)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahole committed Nov 6, 2023
1 parent ebbd313 commit 0951c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/statusCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export async function internalMagitStatus(repository: Repository): Promise<Magit
.replace(Constants.FinalLineBreakRegex, '')
.split(Constants.LineSplitterRegex)
.map(untrackedPath => {
const uri = Uri.parse(repository.rootUri.path + '/' + untrackedPath);
const uri = Uri.from({ ...repository.rootUri, path: repository.rootUri.path + '/' + untrackedPath });
return {
originalUri: uri,
renameUri: uri,
Expand Down

0 comments on commit 0951c00

Please sign in to comment.