Skip to content

Commit

Permalink
fix(patch-list): sort correctly all changed files located at repo root
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantinos Maninakis <maninak@protonmail.com>
  • Loading branch information
maninak committed Jul 16, 2024
1 parent 000b20b commit c524f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
- **webview:** keep panel's title in sync with the title of the patch shown within it as it gets updated either from the extension user or from network users
- **patch-detail:** the buttons on patch detail webviews left open from a previous VS Code session that got restored will now work, same as those of just opened webviews
- **patch-list:** more accurately reflect git check-out state per patch in the list. Previously a checked out patch would not have the associated checkmark denoting its state shown in the patch list unless a check out AND a list refresh was done. Some edge cases may remain unpatched still.
- **patch-list:** sort changed file entries placing correctly always to the top those located at the root directory of the repo
- **patch-list:** let the "Updated X time ago" text in the title bar of the Patches view be updated when there's only one patch in the currently open repo and the user refetched its data exclusively, e.g. using the "Refresh" button in the Patch Detail view
- **commands:** don't fail checking out patch branch if the branch already existed but was referring to a different revision than the one we're attempting to check out
- **settings:** watch _user-defined_ path to Radicle CLI binary for changes too. Previously only the default paths per OS were being watched.
Expand Down
2 changes: 1 addition & 1 deletion src/ux/patchesView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const patchesTreeDataProvider: TreeDataProvider<
)}${sep}${fileDir}${sep}${filename}`

const node: FilechangeNode = {
relativeInRepoUrl: filePath,
relativeInRepoUrl: filePath.includes(sep) ? filePath : `${sep}${filePath}`,
oldVersionUrl,
newVersionUrl,
patch,
Expand Down

0 comments on commit c524f73

Please sign in to comment.