Skip to content

Migrate rust scope implementations #2950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Migrate rust scope implementations #2950

wants to merge 21 commits into from

Conversation

AndreasArvidsson
Copy link
Member

No description provided.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner June 1, 2025 09:59
@AndreasArvidsson
Copy link
Member Author

AndreasArvidsson commented Jun 1, 2025

@pokey Here is another one that is questionable. Type arguments as arg. I can see the logic in this, but we don't support this in any other languages.

changeArgBlueAir.yml

@@ -2,6 +2,6 @@
* The language IDs that we have full tree-sitter support for using our legacy
* modifiers.
*/
export const legacyLanguageIds = ["rust"] as const;
export const legacyLanguageIds = ["dummy"] as const;
Copy link
Member Author

Choose a reason for hiding this comment

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

Compilation error if this list is empty. Cleaning up all the legacy machinery will be done in a follow up.

action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: name}
scopeType: {type: collectionKey}
Copy link
Member Author

Choose a reason for hiding this comment

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

This looks more like a key / value map than call arguments

Copy link
Member Author

Choose a reason for hiding this comment

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

In no other language is the domain for the return value the entire function. This is also extra problematic since you can have multiple return statements.

@@ -13,6 +13,9 @@ command:
scopeType: {type: argumentOrParameter}
Copy link
Member

@auscompgeek auscompgeek Jun 9, 2025

Choose a reason for hiding this comment

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

Should this also be a type? (How do we handle tuple types in TypeScript?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Which one?
You mean typed arrays like [number, string]? Those are just collection items and not usable as type.

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