Skip to content

Introduce refactoring commands for Spec#1892

Merged
Ducasse merged 12 commits intopharo-spec:Pharo14from
AlexisCnockaert:spec-refactoring-commands
Apr 23, 2026
Merged

Introduce refactoring commands for Spec#1892
Ducasse merged 12 commits intopharo-spec:Pharo14from
AlexisCnockaert:spec-refactoring-commands

Conversation

@AlexisCnockaert
Copy link
Copy Markdown
Contributor

@AlexisCnockaert AlexisCnockaert commented Apr 20, 2026

This is the start of the migration of refactoring commands, used now for the method browser.

For now I implemented :
-Rename Class
-Extract Temp
-Convert temp to inst var

We could use these for other places that deal with the code presenter (Playground,...) but we will need an unified API.

I also added test for the commands to check if the navigation through AST is well plugged to drivers.
Created a mock context for the tests, also need a special PR for the driver in pharo repo

This is the start of the migration of refactoring commands, used now for the method browser.
We could use these for other places that deal with the code presenter (Playground,...) but we will need an unified API.
@AlexisCnockaert AlexisCnockaert requested a review from Ducasse April 20, 2026 13:40
@AlexisCnockaert
Copy link
Copy Markdown
Contributor Author

Failing test for selector not implemented is normal since this is introduced in this PR

@Ducasse Ducasse merged commit e3cb83b into pharo-spec:Pharo14 Apr 23, 2026
1 of 2 checks passed
@MarcusDenker
Copy link
Copy Markdown
Contributor

I think the PR has a code loading problem: pharo-project/pharo#19590

@AlexisCnockaert
Copy link
Copy Markdown
Contributor Author

@MarcusDenker I will try to fix this, btw could you look to merge pharo-spec/NewTools#1403 please, because New Tools CI is failing too

@MarcusDenker
Copy link
Copy Markdown
Contributor

@MarcusDenker I will try to fix this, btw could you look to merge pharo-spec/NewTools#1403 please, because New Tools CI is failing too

merged!

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.

3 participants