Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 aaa = "bbb" as const;
selections:
- anchor: {line: 0, character: 12}
active: {line: 0, character: 12}
marks: {}
finalState:
documentContents: const aaa = "bbb" as ;
selections:
- anchor: {line: 0, character: 21}
active: {line: 0, character: 21}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
languageId: typescript
command:
version: 6
spokenForm: chuck type
action:
name: remove
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: type}
usePrePhraseSnapshot: true
initialState:
documentContents: const aaa = "bbb" as const;
selections:
- anchor: {line: 0, character: 12}
active: {line: 0, character: 12}
marks: {}
finalState:
documentContents: const aaa = "bbb";
selections:
- anchor: {line: 0, character: 12}
active: {line: 0, character: 12}
5 changes: 1 addition & 4 deletions queries/typescript.core.scm
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,7 @@
;;! ----------
(as_expression
(_) @_.leading.start.endOf
[
(generic_type)
(predefined_type)
] @type @_.leading.end.startOf
(_) @type @_.leading.end.startOf
) @_.domain

;;!! aaa satisfies Bbb
Expand Down