Skip to content

Commit ef78677

Browse files
Update src/model.ts
Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 3e08ea2 commit ef78677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ export class GitExtension implements IGitExtension {
250250
* @param path the file path relative to the server root
251251
*/
252252
getFile(path: string): Git.IStatusFile {
253-
const matchingFiles = this._status.files.filter(status => {
253+
const matchingFiles = this._status.files.find(status => {
254254
return this.getRelativeFilePath(status.to) === path;
255255
});
256256
if (matchingFiles.length === 0) {

0 commit comments

Comments
 (0)