Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Sep 8, 2024

I have a on purpose conflict where I have string: doubleQuotes pair and string: string scope. This allows me to do string wrap that will do double quotes, but take string should be all strings not just double quotes. This worked fine before the dfa optimization where we flattened the scope types in #2628

Just rearranging the lists so the one with scope types has higher priority than the list of wrappers fixes this.

Checklist

  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner September 8, 2024 01:22
@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue Sep 10, 2024
Merged via the queue into main with commit 5448c2e Sep 10, 2024
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the pairString branch September 10, 2024 08:43
cursorless-bot pushed a commit that referenced this pull request Sep 10, 2024
…orms (#2658)

I have a on purpose conflict where I have `string: doubleQuotes` pair
and `string: string` scope. This allows me to do `string wrap` that will
do double quotes, but `take string` should be all strings not just
double quotes. This worked fine before the dfa optimization where we
flattened the scope types in #2628

Just rearranging the lists so the one with scope types has higher
priority than the list of wrappers fixes this.

## Checklist

- [x] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [/] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [/] I have not broken the cheatsheet
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