Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Jun 30, 2025

Since this scope is private we're not going to do any migration or deprecation. It will just be removed. The this pull requests adds value scope support for the switch subject though.

With that said I'm going to leave this open for a week in case someone has input.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner June 30, 2025 13:40
@AndreasArvidsson AndreasArvidsson mentioned this pull request Jun 30, 2025
2 tasks
@AndreasArvidsson
Copy link
Member Author

A week has passed with no feedback. I will go ahead and merge this now.

@AndreasArvidsson AndreasArvidsson merged commit bfe1893 into main Jul 7, 2025
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the removeSwitchSubject branch July 7, 2025 06:50
cursorless-bot pushed a commit that referenced this pull request Jul 7, 2025
* We're already using `value` for the collection in for-each statements:
-
https://github.com/cursorless-dev/cursorless/blob/d55c744091394d8840a17e04ef8b7d21f03068b3/data/fixtures/scopes/javascript.core/value.foreach.scope
* Most of the tree sitter parsers call this field `value`. The other
alternative that's commonly used is `condition`, but we're already using
that in switch cases and I want to avoid conflicts.
-
https://github.com/cursorless-dev/cursorless/blob/d55c744091394d8840a17e04ef8b7d21f03068b3/queries/javascript.core.scm#L614

Since this scope is private we're not going to do any migration or
deprecation. It will just be removed. The this pull requests adds
`value` scope support for the switch subject though.

With that said I'm going to leave this open for a week in case someone
has input.
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.

1 participant