mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
SCM - quick diff should better handle untracked files (#236315)
This commit is contained in:
@@ -1035,7 +1035,13 @@ export class Repository implements Disposable {
|
||||
}
|
||||
|
||||
// Ignore path that is inside a merge group
|
||||
if (this.mergeGroup.resourceStates.some(r => r.resourceUri.path === uri.path)) {
|
||||
if (this.mergeGroup.resourceStates.some(r => pathEquals(r.resourceUri.fsPath, uri.fsPath))) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// Ignore path that is untracked
|
||||
if (this.untrackedGroup.resourceStates.some(r => pathEquals(r.resourceUri.path, uri.path)) ||
|
||||
this.workingTreeGroup.resourceStates.some(r => pathEquals(r.resourceUri.path, uri.path) && r.type === Status.UNTRACKED)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user