-
-
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.
Disqualify arrow delimiter in function type (#2731)
Disqualified `=>` in typescript function type definitions to be used in a matching pair delimiter. ## 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
ef4a11e
commit 6db1575
Showing
5 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
data/fixtures/recorded/languages/typescript/changeInside.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: 7 | ||
spokenForm: change inside | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- {type: interiorOnly} | ||
usePrePhraseSnapshot: false | ||
initialState: | ||
documentContents: Promise<() => number>; | ||
selections: | ||
- anchor: {line: 0, character: 14} | ||
active: {line: 0, character: 14} | ||
marks: {} | ||
finalState: | ||
documentContents: Promise<>; | ||
selections: | ||
- anchor: {line: 0, character: 8} | ||
active: {line: 0, character: 8} |
5 changes: 5 additions & 0 deletions
5
data/fixtures/scopes/typescript.core/disqualifyDelimiter.scope
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,5 @@ | ||
Promise<() => number> | ||
--- | ||
[Content] = 0:11-0:13 | ||
>--< | ||
0| Promise<() => number> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -382,3 +382,8 @@ | |
. | ||
";"? @statement.end | ||
) | ||
|
||
;; () => number | ||
(function_type | ||
"=>" @disqualifyDelimiter | ||
) |