Skip to content

Replace old Playground usages with the new one - #18915

Merged
cptpiepmatz merged 29 commits into
piet/nts-cleanup/macro-inject-playgroundfrom
piet/nts-cleanup/replace-playgrounds
Nov 19, 2026
Merged

cptpiepmatz merged 29 commits into
piet/nts-cleanup/macro-inject-playgroundfrom
piet/nts-cleanup/replace-playgrounds

Conversation

@cptpiepmatz

Copy link
Copy Markdown
Member

Description

This PR replaces all the Playground::setup calls with the new injected Playground.

Most of the changes are done via this script which uses the rust-analyzer internals to replace code via the AST.

All the test should behave exactly the same as before but they don't need to manually set up a playground anymore. Also this removes quite a lot of lines, which is nice.

User-facing changes (Release notes)

n/a


Stack created with GitHub Stacks CLI • Give Feedback 💬

@cptpiepmatz cptpiepmatz added tests issues to add tests or fix tests category:refactor notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes labels Aug 26, 2026
@cptpiepmatz
cptpiepmatz force-pushed the piet/nts-cleanup/replace-playgrounds branch from 41838b3 to f11587c Compare August 26, 2026 18:07
@cptpiepmatz
cptpiepmatz force-pushed the piet/nts-cleanup/replace-playgrounds branch from f11587c to 145b388 Compare August 26, 2026 19:44
@WindSoilder
WindSoilder force-pushed the piet/nts-cleanup/replace-playgrounds branch from 145b388 to 410b308 Compare August 30, 2026 01:10
@cptpiepmatz
cptpiepmatz force-pushed the piet/nts-cleanup/replace-playgrounds branch from 410b308 to 951e997 Compare August 30, 2026 14:55
@cptpiepmatz
cptpiepmatz force-pushed the piet/nts-cleanup/replace-playgrounds branch from 951e997 to c9a728b Compare November 18, 2026 23:09
@cptpiepmatz
cptpiepmatz merged commit b9d514d into main Nov 19, 2026
6 checks passed
@github-actions github-actions Bot added this to the v0.118.0 milestone Nov 19, 2026
@cptpiepmatz
cptpiepmatz deleted the piet/nts-cleanup/replace-playgrounds branch November 19, 2026 13:29
hexbinoct added a commit to hexbinoct/nushell that referenced this pull request Nov 20, 2026
Port the six new tests to the new `Playground` from nushell#18915, which
removed `Playground::setup`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:refactor notes:mention Noted in "Hall of Fame" section notes:ready Indicates Ready for Release notes tests issues to add tests or fix tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant