-
-
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.
Implement more Typescript scope types using queries
- Loading branch information
Showing
20 changed files
with
465 additions
and
24 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
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
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk4.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 function *aaa() {} | ||
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
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk5.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: (function foo() {}) | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
finalState: | ||
documentContents: () | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} |
18 changes: 18 additions & 0 deletions
18
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk6.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: (function () {}) | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
thrownError: {name: NoContainingScopeError} |
22 changes: 22 additions & 0 deletions
22
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk7.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 const myFunk = () => {}; | ||
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
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk8.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
...ges/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunk9.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
...cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunkName2.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 name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionName} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export function *aaa() {} | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: export function *() {} | ||
selections: | ||
- anchor: {line: 0, character: 17} | ||
active: {line: 0, character: 17} |
22 changes: 22 additions & 0 deletions
22
...cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunkName3.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 name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionName} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: (function foo() {}) | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
finalState: | ||
documentContents: (function () {}) | ||
selections: | ||
- anchor: {line: 0, character: 10} | ||
active: {line: 0, character: 10} |
22 changes: 22 additions & 0 deletions
22
...cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunkName4.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 name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionName} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: export const myFunk = () => {}; | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: export const = () => {}; | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} |
22 changes: 22 additions & 0 deletions
22
...cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunkName5.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 name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionName} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: const foo = function bar() {} | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
marks: {} | ||
finalState: | ||
documentContents: const foo = function () {} | ||
selections: | ||
- anchor: {line: 0, character: 21} | ||
active: {line: 0, character: 21} |
18 changes: 18 additions & 0 deletions
18
...cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearFunkName6.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 name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionName} | ||
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
...s/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/typescript/clearLambda5.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 lambda | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: anonymousFunction} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: (function () {}) | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
finalState: | ||
documentContents: () | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} |
Oops, something went wrong.