File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments