Skip to content

Commit c097097

Browse files
committed
CCR feedback
1 parent e1d3ea4 commit c097097

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/view/treeNodes/repositoryChangesNode.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ export class RepositoryChangesNode extends TreeNode implements vscode.TreeItem {
9292
return;
9393
}
9494
if (this.parent.view.visible && activeEditorUri) {
95-
const matchingFile = this._reviewModel.localFileChanges.find(change => compareIgnoreCase(change.changeModel.filePath.toString(), activeEditorUri) === 0);
95+
const matchingFile = this._reviewModel.localFileChanges.find(change => {
96+
const changePath = change.changeModel.filePath.toString();
97+
if (process.platform === 'win32') {
98+
return compareIgnoreCase(changePath, activeEditorUri) === 0;
99+
}
100+
return changePath === activeEditorUri;
101+
});
96102
if (matchingFile && matchingFile.parent !== this.parent) {
97103
this.reveal(matchingFile, { select: true });
98104
}

0 commit comments

Comments
 (0)