File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 ;
@@ -79,7 +80,7 @@ export class RepositoryChangesNode extends TreeNode implements vscode.TreeItem {
7980
8081 private revealActiveEditorInTree ( activeEditorUri : string | undefined ) : void {
8182 if ( this . parent . view . visible && activeEditorUri ) {
82- const matchingFile = this . _reviewModel . localFileChanges . find ( change => change . changeModel . filePath . toString ( ) === activeEditorUri ) ;
83+ const matchingFile = this . _reviewModel . localFileChanges . find ( change => compareIgnoreCase ( change . changeModel . filePath . toString ( ) , activeEditorUri ) === 0 ) ;
8384 if ( matchingFile ) {
8485 this . reveal ( matchingFile , { select : true } ) ;
8586 }
You can’t perform that action at this time.
0 commit comments