Skip to content

[Method Browser] Fix method list desync when filter is active during method announcements#1388

Merged
Ducasse merged 3 commits intopharo-spec:Pharo14from
AlexisCnockaert:methodbrowser/enhance
Apr 23, 2026
Merged

[Method Browser] Fix method list desync when filter is active during method announcements#1388
Ducasse merged 3 commits intopharo-spec:Pharo14from
AlexisCnockaert:methodbrowser/enhance

Conversation

@AlexisCnockaert
Copy link
Copy Markdown
Contributor

@AlexisCnockaert AlexisCnockaert commented Apr 17, 2026

handleMethodAdded: and handleMethodModified: were operating on the filtered list (self methods) instead of the unfilteredItems, causing methods outside the current filter to be silently dropped when a code change was announced.
Fixed by always reading/writing through unfilteredItems and working on a copy before calling self methods:

And of course new test to deny regression on this behavior

Also fixed:

  • duplicate selectedIndex assignment in handleMethodRemoved:
  • windowTitle now shows 'No results' when the list is empty
  • cleaning code comment and protocol

Cnockaert added 2 commits April 17, 2026 10:30
…ethod announcements

`handleMethodAdded:` and `handleMethodModified:` were operating on the
filtered list (self methods) instead of the unfilteredItems, causing methods outside the current filter to be silently dropped when
a code change was announced. 
Fixed by always reading/writing through unfilteredItems and working on a copy before calling self methods:. 

Also fixed:
- duplicate selectedIndex assignment in handleMethodRemoved:
- windowTitle now shows 'No results' when the list is empty
- cleaning code comment and protocol
@AlexisCnockaert AlexisCnockaert requested a review from Ducasse April 17, 2026 08:36
@Ducasse Ducasse merged commit 4c577b3 into pharo-spec:Pharo14 Apr 23, 2026
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants