Describe the Bug

Faulty code:
|
let fileName = this.props.committedFile.relativePath; |
|
if (fileName.lastIndexOf('/') != -1) { |
|
fileName = fileName.substr(fileName.lastIndexOf('/') + 1); |
|
} |
|
const fileNameClass = fileName == globalThis.fileName ? 'file-name-active' : 'file-name'; |
Steps To Reproduce
File structure:
-src/index.tsx
-eva/index.tsx
- Make changes to the above files and commit them
- Open
src/index.tsx
- Use
git.viewFileHistory
- Select the commit just made and search for "index"
- Both
src/index.tsx and eva/index.tsx are highlighted
Expected Behavior
Only src/index.tsx should be highlighted.
Environment
- OS: macOS 14
- VSCode version: 1.85.1
- Git History version: 0.6.20
Describe the Bug
Faulty code:
gitHistoryVSCode/browser/src/components/LogView/Commit/FileEntry/index.tsx
Lines 70 to 74 in 9f06b48
Steps To Reproduce
File structure:
-src/index.tsx
-eva/index.tsx
src/index.tsxgit.viewFileHistorysrc/index.tsxandeva/index.tsxare highlightedExpected Behavior
Only
src/index.tsxshould be highlighted.Environment