mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Fix: Problems table mode ignoring "Show Active File Only" filter (#291860)
* Initial plan * Fix: Problems table mode not respecting active file filter When the active file filter is enabled and markers change, the table view was incorrectly showing markers from all files. This happened because the widget.update() method was patching updates into the internal unfiltered list. The fix ensures that when the active file filter is on, we always reset the widget with the filtered list instead of trying to do an incremental update. Co-authored-by: sandy081 <10746682+sandy081@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sandy081 <10746682+sandy081@users.noreply.github.com>
This commit is contained in:
@@ -333,7 +333,7 @@ export class MarkersView extends FilterViewPane implements IMarkersView {
|
||||
if (markerOrChange instanceof Marker) {
|
||||
this.widget.updateMarker(markerOrChange);
|
||||
} else {
|
||||
if (markerOrChange.added.size || markerOrChange.removed.size) {
|
||||
if (markerOrChange.added.size || markerOrChange.removed.size || this.filters.activeFile) {
|
||||
// Reset complete widget
|
||||
this.resetWidget();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user