Skip to content

Conversation

BlueDrink9
Copy link
Contributor

@BlueDrink9 BlueDrink9 commented Jan 12, 2025

I'm still wrapping my head around treesitter to add the supported scopes, so I'll update this PR and add relevant tests once I do + once the r PR is added to vscode's parse tree

Checklist

@BlueDrink9 BlueDrink9 requested a review from a team as a code owner January 12, 2025 03:42
@AndreasArvidsson AndreasArvidsson marked this pull request as draft January 12, 2025 07:54
@BlueDrink9 BlueDrink9 marked this pull request as ready for review May 13, 2025 21:34
@BlueDrink9
Copy link
Contributor Author

I'm marking this as ready to make adding scopes easier. Once r support is included in cursorless, it will be easier for it to pick it up as an option for adding scopes

@AndreasArvidsson
Copy link
Member

Latest version of the parse tree is published and should be available in the marketplace very soon.

@BlueDrink9
Copy link
Contributor Author

@AndreasArvidsson ready to review! Thank you again for your help yesterday

@AndreasArvidsson
Copy link
Member

Please add a scope test for an empty argument list as well. The difference is the insertion delimiter. Please have a look at how it's implemented in other languages.

@AndreasArvidsson
Copy link
Member

I would recommend that you create multiple scope files for the same facet instead of adding multiple different code examples in the same file. It's much simpler to review it that way.

@BlueDrink9 BlueDrink9 force-pushed the main branch 2 times, most recently from 8bb8dee to 3bf717c Compare May 17, 2025 03:27
@AndreasArvidsson
Copy link
Member

Looks like you're starting to get the hang of this :)

  • Might be worth adding a test for a vertical argument list for both argument.actual and argumentList.formal.
  • Looks like you're still missing argument.formal
  • Don't forget to add iteration scopes for argument otherwise you can't do every arg

@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue May 25, 2025
Merged via the queue into cursorless-dev:main with commit 074be3a May 25, 2025
15 checks passed
@AndreasArvidsson
Copy link
Member

@BlueDrink9 Regarding iteration domain for arguments
#2930

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