Fix typescript angle bracket pair (#367)

This commit is contained in:
Pokey Rule 2021-12-07 15:50:35 +00:00 committed by GitHub
parent b6b22f87f6
commit 8df6295238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View File

@ -11,4 +11,5 @@ export const ALLOWABLE_ANGLE_BRACKET_PARENTS = [
"jsx_self_closing_element",
"self_closing_tag",
"start_tag",
"type_parameters",
];

View File

@ -0,0 +1,23 @@
languageId: typescript
command:
version: 0
spokenForm: clear pair
action: clearAndSetSelection
targets:
- type: primitive
modifier: {type: surroundingPair, delimiter: any}
initialState:
documentContents: function hello<Foo>() {}
selections:
- anchor: {line: 0, character: 17}
active: {line: 0, character: 17}
marks: {}
finalState:
documentContents: function hello() {}
selections:
- anchor: {line: 0, character: 14}
active: {line: 0, character: 14}
thatMark:
- anchor: {line: 0, character: 14}
active: {line: 0, character: 14}
fullTargets: [{type: primitive, mark: {type: cursor}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: surroundingPair, delimiter: any}}]