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 fc5cff7 commit 5b9c658Copy full SHA for 5b9c658
src/vs/workbench/api/browser/mainThreadEditors.ts
@@ -173,8 +173,9 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
173
return undefined;
174
}
175
176
- const scmQuickDiffChanges = dirtyDiffModel.mapChanges.get(scmQuickDiff.label) ?? [];
177
- const changes = scmQuickDiffChanges.map(index => dirtyDiffModel.changes[index].change);
+ const changes = dirtyDiffModel.changes
+ .filter(change => change.label === scmQuickDiff.label)
178
+ .map(change => change.change);
179
180
return {
181
original: scmQuickDiff.originalResource,
0 commit comments