-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support value for typescript destruct pattern (#2087)
Fixes #2082 ## 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
- Loading branch information
1 parent
2a56990
commit ea039d3
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeValue5.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
languageId: typescript | ||
command: | ||
version: 6 | ||
spokenForm: change value | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: value} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
const { aaa: bbb } = ccc; | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
const { aaa: } = ccc; | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} |
23 changes: 23 additions & 0 deletions
23
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/chuckKey2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
languageId: typescript | ||
command: | ||
version: 6 | ||
spokenForm: chuck key | ||
action: | ||
name: remove | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: collectionKey} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const { aaa: bbb } = ccc;" | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
marks: {} | ||
finalState: | ||
documentContents: const { bbb } = ccc; | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} |
23 changes: 23 additions & 0 deletions
23
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/chuckValue4.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
languageId: typescript | ||
command: | ||
version: 6 | ||
spokenForm: chuck value | ||
action: | ||
name: remove | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: value} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const { aaa: bbb } = ccc;" | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
marks: {} | ||
finalState: | ||
documentContents: const { aaa } = ccc; | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters