forked from cursorless-dev/cursorless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Typescript "value" to next gen; improve "name" (cursorless-de…
…v#1924) ## Checklist - [ ] 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
Showing
21 changed files
with
1,111 additions
and
60 deletions.
There are no files selected for viewing
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
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
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
33 changes: 33 additions & 0 deletions
33
...rsorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/changeEveryValue.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,33 @@ | ||
languageId: javascript | ||
command: | ||
version: 6 | ||
spokenForm: change every value | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: value} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
function aaa() { | ||
const bbb = 0; | ||
const ccc = 0; | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 18} | ||
active: {line: 2, character: 18} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
function aaa() { | ||
const bbb = ; | ||
const ccc = ; | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 16} | ||
active: {line: 1, character: 16} | ||
- anchor: {line: 2, character: 16} | ||
active: {line: 2, character: 16} |
29 changes: 29 additions & 0 deletions
29
...sorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/changeEveryValue2.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,29 @@ | ||
languageId: javascript | ||
command: | ||
version: 6 | ||
spokenForm: change every value | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: value} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
const bbb = 0; | ||
const ccc = 0; | ||
selections: | ||
- anchor: {line: 1, character: 14} | ||
active: {line: 1, character: 14} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
const bbb = ; | ||
const ccc = ; | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
- anchor: {line: 1, character: 12} | ||
active: {line: 1, character: 12} |
23 changes: 23 additions & 0 deletions
23
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/changeName.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: javascript | ||
command: | ||
version: 6 | ||
spokenForm: change name | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const aaa = "bbb", ccc = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 30} | ||
active: {line: 0, character: 30} | ||
marks: {} | ||
finalState: | ||
documentContents: const aaa = "bbb", = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 19} | ||
active: {line: 0, character: 19} |
105 changes: 105 additions & 0 deletions
105
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/changeName2.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,105 @@ | ||
languageId: javascript | ||
command: | ||
version: 6 | ||
spokenForm: change name | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
const aaa = 0; | ||
let bbb = 0; | ||
var hhh = 0; | ||
ccc = 0; | ||
kkk += 1; | ||
const ddd = 0, eee = 0; | ||
let fff = 0, ggg = 0; | ||
var iii = 0; | ||
export const jjj = 0; | ||
export let kkk = 0; | ||
export var lll = 0; | ||
export const mmm = 0, nnn = 0; | ||
export let ooo = 0, ppp = 0; | ||
selections: | ||
- anchor: {line: 0, character: 14} | ||
active: {line: 0, character: 14} | ||
- anchor: {line: 1, character: 12} | ||
active: {line: 1, character: 12} | ||
- anchor: {line: 2, character: 12} | ||
active: {line: 2, character: 12} | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 8} | ||
- anchor: {line: 4, character: 9} | ||
active: {line: 4, character: 9} | ||
- anchor: {line: 5, character: 23} | ||
active: {line: 5, character: 23} | ||
- anchor: {line: 6, character: 21} | ||
active: {line: 6, character: 21} | ||
- anchor: {line: 7, character: 12} | ||
active: {line: 7, character: 12} | ||
- anchor: {line: 8, character: 21} | ||
active: {line: 8, character: 21} | ||
- anchor: {line: 9, character: 19} | ||
active: {line: 9, character: 19} | ||
- anchor: {line: 10, character: 19} | ||
active: {line: 10, character: 19} | ||
- anchor: {line: 11, character: 30} | ||
active: {line: 11, character: 30} | ||
- anchor: {line: 12, character: 28} | ||
active: {line: 12, character: 28} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
const = 0; | ||
let = 0; | ||
var = 0; | ||
= 0; | ||
+= 1; | ||
const = 0, = 0; | ||
let = 0, = 0; | ||
var = 0; | ||
export const = 0; | ||
export let = 0; | ||
export var = 0; | ||
export const = 0, = 0; | ||
export let = 0, = 0; | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} | ||
- anchor: {line: 3, character: 0} | ||
active: {line: 3, character: 0} | ||
- anchor: {line: 4, character: 0} | ||
active: {line: 4, character: 0} | ||
- anchor: {line: 5, character: 6} | ||
active: {line: 5, character: 6} | ||
- anchor: {line: 5, character: 12} | ||
active: {line: 5, character: 12} | ||
- anchor: {line: 6, character: 4} | ||
active: {line: 6, character: 4} | ||
- anchor: {line: 6, character: 10} | ||
active: {line: 6, character: 10} | ||
- anchor: {line: 7, character: 4} | ||
active: {line: 7, character: 4} | ||
- anchor: {line: 8, character: 13} | ||
active: {line: 8, character: 13} | ||
- anchor: {line: 9, character: 11} | ||
active: {line: 9, character: 11} | ||
- anchor: {line: 10, character: 11} | ||
active: {line: 10, character: 11} | ||
- anchor: {line: 11, character: 13} | ||
active: {line: 11, character: 13} | ||
- anchor: {line: 11, character: 19} | ||
active: {line: 11, character: 19} | ||
- anchor: {line: 12, character: 11} | ||
active: {line: 12, character: 11} | ||
- anchor: {line: 12, character: 17} | ||
active: {line: 12, character: 17} |
47 changes: 47 additions & 0 deletions
47
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/changeName3.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,47 @@ | ||
languageId: javascript | ||
command: | ||
version: 6 | ||
spokenForm: change name | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
hhh = 0, iii = 0, jjj=0; | ||
lll += 1, mmm += 1, nnn += 1; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
- anchor: {line: 0, character: 18} | ||
active: {line: 0, character: 18} | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 0} | ||
- anchor: {line: 1, character: 10} | ||
active: {line: 1, character: 10} | ||
- anchor: {line: 1, character: 20} | ||
active: {line: 1, character: 20} | ||
marks: {} | ||
finalState: | ||
documentContents: |2- | ||
= 0, = 0, =0; | ||
+= 1, += 1, += 1; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 0} | ||
- anchor: {line: 1, character: 7} | ||
active: {line: 1, character: 7} | ||
- anchor: {line: 1, character: 14} | ||
active: {line: 1, character: 14} |
Oops, something went wrong.