We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e08ea2 commit ef78677Copy full SHA for ef78677
src/model.ts
@@ -250,7 +250,7 @@ export class GitExtension implements IGitExtension {
250
* @param path the file path relative to the server root
251
*/
252
getFile(path: string): Git.IStatusFile {
253
- const matchingFiles = this._status.files.filter(status => {
+ const matchingFiles = this._status.files.find(status => {
254
return this.getRelativeFilePath(status.to) === path;
255
});
256
if (matchingFiles.length === 0) {
0 commit comments