File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { ReviewModel } from '../reviewModel';
1515import { CommitsNode } from './commitsCategoryNode' ;
1616import { FilesCategoryNode } from './filesCategoryNode' ;
1717import { BaseTreeNode , TreeNode } from './treeNode' ;
18+ import { compareIgnoreCase } from '../../common/utils' ;
1819
1920export class RepositoryChangesNode extends TreeNode implements vscode . TreeItem {
2021 private _filesCategoryNode ?: FilesCategoryNode ;
@@ -91,7 +92,13 @@ export class RepositoryChangesNode extends TreeNode implements vscode.TreeItem {
9192 return ;
9293 }
9394 if ( this . parent . view . visible && activeEditorUri ) {
94- const matchingFile = this . _reviewModel . localFileChanges . find ( change => change . changeModel . filePath . toString ( ) === activeEditorUri ) ;
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+ } ) ;
95102 if ( matchingFile && matchingFile . parent !== this . parent ) {
96103 this . reveal ( matchingFile , { select : true } ) ;
97104 }
You can’t perform that action at this time.
0 commit comments