-
-
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.
Expand
"type"
to include generic type arguments / parameters (#2023)
- fixes #1231 ## 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
620c538
commit f577cee
Showing
16 changed files
with
304 additions
and
12 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType10.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,31 @@ | ||
languageId: typescript | ||
command: | ||
version: 6 | ||
spokenForm: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
useState<string>() | ||
useState<Record<string, string>>() | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
- anchor: {line: 1, character: 9} | ||
active: {line: 1, character: 9} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
useState<>() | ||
useState<>() | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
- anchor: {line: 1, character: 9} | ||
active: {line: 1, character: 9} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType11.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: foo<Record<string, string>>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: foo<>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType12.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: foo<string, string>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: foo<, string>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType13.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: foo<string, string>() | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
marks: {} | ||
finalState: | ||
documentContents: foo<string, >() | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType14.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: Foo<string>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: Foo<>() | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} |
31 changes: 31 additions & 0 deletions
31
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType15.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,31 @@ | ||
languageId: typescript | ||
command: | ||
version: 6 | ||
spokenForm: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |+ | ||
function foo<A>() { | ||
} | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} | ||
marks: {} | ||
finalState: | ||
documentContents: |+ | ||
function foo<>() { | ||
} | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} |
29 changes: 29 additions & 0 deletions
29
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType16.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: typescript | ||
command: | ||
version: 6 | ||
spokenForm: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
const bar = <A>() => { | ||
} | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
const bar = <>() => { | ||
} | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType17.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const foo: Record<string, string> = {}" | ||
selections: | ||
- anchor: {line: 0, character: 18} | ||
active: {line: 0, character: 18} | ||
marks: {} | ||
finalState: | ||
documentContents: "const foo: Record<, string> = {}" | ||
selections: | ||
- anchor: {line: 0, character: 18} | ||
active: {line: 0, character: 18} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType18.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const foo: string = new Bar<number>(foo);" | ||
selections: | ||
- anchor: {line: 0, character: 24} | ||
active: {line: 0, character: 24} | ||
marks: {} | ||
finalState: | ||
documentContents: "const foo: string = new (foo);" | ||
selections: | ||
- anchor: {line: 0, character: 24} | ||
active: {line: 0, character: 24} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType19.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const foo: Bar<number> = new Bar<number>(foo);" | ||
selections: | ||
- anchor: {line: 0, character: 11} | ||
active: {line: 0, character: 11} | ||
marks: {} | ||
finalState: | ||
documentContents: "const foo: = new Bar<number>(foo);" | ||
selections: | ||
- anchor: {line: 0, character: 11} | ||
active: {line: 0, character: 11} |
23 changes: 23 additions & 0 deletions
23
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/changeType20.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: change type | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: type} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "const foo: Bar<number> = new Bar<number>(foo);" | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} | ||
marks: {} | ||
finalState: | ||
documentContents: "const foo: Bar<> = new Bar<number>(foo);" | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} |
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
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