Skip to content

[Method Browser] Baseline update and fixes#1405

Merged
jecisc merged 7 commits intopharo-spec:Pharo14from
AlexisCnockaert:methodbrowser/fixes
Apr 24, 2026
Merged

[Method Browser] Baseline update and fixes#1405
jecisc merged 7 commits intopharo-spec:Pharo14from
AlexisCnockaert:methodbrowser/fixes

Conversation

@AlexisCnockaert
Copy link
Copy Markdown
Contributor

@AlexisCnockaert AlexisCnockaert commented Apr 24, 2026

  • New spec command: Rename Variable + test!
  • Refactoring commands are now hidden when they cannot be executed.
  • Fixed CI tests.
  • Added the refactoring command packages by default in the baseline.
  • Updated initialization so the code editor can be marked dirty.
  • Lastly, precised the title when there is no results (i.e Implementors of #printOn: No Results).

Added the refactoring command packages by default in the baseline.
As well, updated initialization so the code editor can be marked dirty.
Lastly, precised the title when there is no results
@AlexisCnockaert AlexisCnockaert requested a review from Ducasse April 24, 2026 11:27
@jecisc
Copy link
Copy Markdown
Member

jecisc commented Apr 24, 2026

The navigation system tests are not related?

@AlexisCnockaert
Copy link
Copy Markdown
Contributor Author

AlexisCnockaert commented Apr 24, 2026

The navigation system tests are not related?

No it is linked to recent changes on click events I believe

Comment on lines 42 to 55
{
StRenameClassCommand.
StExtractTempCommand.
StConvertTempToInstVarCommand.
StInlineMethodCommand.
StRenameArgOrTempCommand.
StGenerateVariableAccessorCommand.
StMoveInstanceVariableToClassSideCommand.
StPushUpVariableCommand.
StPushDownVariableCommand.
StRemoveVariableCommand.
StProtectVariableCommand } do: [ :cmdClass | group register: (cmdClass forSpecContext: methodBrowser) ].
StProtectVariableCommand.
StRenameVariableCommand } do: [ :cmdClass | group register: (cmdClass forSpecContext: methodBrowser) ].
^ group
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be change in a future PR but I don't like hardcoded list like this. Ideally we should collect the commands. Because if I want to customize my IDE with my own command, I cannot we a hard coded list :(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i understand, I was thinking of changing it too

@jecisc jecisc merged commit d7e9908 into pharo-spec:Pharo14 Apr 24, 2026
0 of 2 checks passed
@AlexisCnockaert AlexisCnockaert deleted the methodbrowser/fixes branch April 24, 2026 18:44
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