-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement more Typescript scope types using queries
- Loading branch information
Showing
41 changed files
with
1,094 additions
and
57 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
28 changes: 28 additions & 0 deletions
28
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearFunk.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,28 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear funk | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
class Aaa { | ||
bbb = () => {}; | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 19} | ||
active: {line: 1, character: 19} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
class Aaa { | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} |
22 changes: 22 additions & 0 deletions
22
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName.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,22 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const aaa = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: const = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} |
22 changes: 22 additions & 0 deletions
22
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName2.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,22 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export const aaa = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: export const = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} |
22 changes: 22 additions & 0 deletions
22
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName3.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,22 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: var aaa = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: var = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} |
22 changes: 22 additions & 0 deletions
22
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName4.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,22 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export var aaa = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: export var = "bbb"; | ||
selections: | ||
- anchor: {line: 0, character: 11} | ||
active: {line: 0, character: 11} |
24 changes: 24 additions & 0 deletions
24
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName5.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,24 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const aaa = "bbb", ccc = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: const = "bbb", = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
- anchor: {line: 0, character: 16} | ||
active: {line: 0, character: 16} |
24 changes: 24 additions & 0 deletions
24
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName6.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,24 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export const aaa = "bbb", ccc = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: export const = "bbb", = "ddd"; | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} | ||
- anchor: {line: 0, character: 23} | ||
active: {line: 0, character: 23} |
28 changes: 28 additions & 0 deletions
28
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName7.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,28 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
class Aaa { | ||
bbb = "ccc"; | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 16} | ||
active: {line: 1, character: 16} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
class Aaa { | ||
= "ccc"; | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} |
28 changes: 28 additions & 0 deletions
28
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/javascript/clearName8.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,28 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
class Aaa { | ||
bbb = "ccc" | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 15} | ||
active: {line: 1, character: 15} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
class Aaa { | ||
= "ccc" | ||
} | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} |
22 changes: 22 additions & 0 deletions
22
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk10.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,22 @@ | ||
languageId: typescript | ||
command: | ||
version: 5 | ||
spokenForm: clear funk | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const foo = function *bar() {} | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
marks: {} | ||
finalState: | ||
documentContents: "const foo = " | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} |
18 changes: 18 additions & 0 deletions
18
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk11.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,18 @@ | ||
languageId: typescript | ||
command: | ||
version: 5 | ||
spokenForm: clear funk | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const foo = function *bar() {} | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
thrownError: {name: NoContainingScopeError} |
22 changes: 22 additions & 0 deletions
22
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk12.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,22 @@ | ||
languageId: typescript | ||
command: | ||
version: 5 | ||
spokenForm: clear funk | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export default function *() {} | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: "" | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} |
22 changes: 22 additions & 0 deletions
22
...es/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk13.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,22 @@ | ||
languageId: javascript | ||
command: | ||
version: 5 | ||
spokenForm: clear funk | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: namedFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: var foo = () => {}; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: "" | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} |
Oops, something went wrong.