|
3 | 3 | "keys": [ "ctrl+t", "ctrl+d" ],
|
4 | 4 | "command": "typescript_go_to_definition",
|
5 | 5 | "context": [
|
6 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 6 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
7 | 7 | ]
|
8 | 8 | },
|
9 | 9 | {
|
10 | 10 | "keys": [ "f12" ],
|
11 | 11 | "command": "typescript_go_to_definition",
|
12 | 12 | "context": [
|
13 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 13 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
14 | 14 | ]
|
15 | 15 | },
|
16 | 16 | {
|
|
19 | 19 | "context": [
|
20 | 20 | { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
|
21 | 21 | { "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
|
22 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 22 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
23 | 23 | ]
|
24 | 24 | },
|
25 | 25 | {
|
26 | 26 | "keys": [ "ctrl+alt+r"],
|
27 | 27 | "command": "typescript_nav_to",
|
28 | 28 | "context": [
|
29 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 29 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
30 | 30 | ]
|
31 | 31 | },
|
32 | 32 | {
|
|
35 | 35 | "context": [
|
36 | 36 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
|
37 | 37 | { "key": "num_selections", "operator": "equal", "operand": 1, "match_all": true },
|
38 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 38 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
39 | 39 | ]
|
40 | 40 | },
|
41 | 41 | {
|
42 | 42 | "keys": [ "ctrl+t", "ctrl+m" ],
|
43 | 43 | "command": "typescript_rename",
|
44 | 44 | "context": [
|
45 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 45 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
46 | 46 | ]
|
47 | 47 | },
|
48 | 48 | {
|
49 | 49 | "keys": [ "ctrl+t", "ctrl+n" ],
|
50 | 50 | "command": "typescript_next_ref",
|
51 | 51 | "context": [
|
52 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 52 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
53 | 53 | ]
|
54 | 54 | },
|
55 | 55 | {
|
|
63 | 63 | "keys": [ "ctrl+t", "ctrl+p" ],
|
64 | 64 | "command": "typescript_prev_ref",
|
65 | 65 | "context": [
|
66 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 66 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
67 | 67 | ]
|
68 | 68 | },
|
69 | 69 | {
|
|
77 | 77 | "keys": [ "ctrl+t", "ctrl+q" ],
|
78 | 78 | "command": "typescript_quick_info_doc",
|
79 | 79 | "context": [
|
80 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 80 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
81 | 81 | ]
|
82 | 82 | },
|
83 | 83 | {
|
84 | 84 | "keys": [ "ctrl+t", "ctrl+r" ],
|
85 | 85 | "command": "typescript_find_references",
|
86 | 86 | "context": [
|
87 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 87 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
88 | 88 | ]
|
89 | 89 | },
|
90 | 90 | {
|
91 | 91 | "keys": [ "ctrl+t", "ctrl+s" ],
|
92 | 92 | "command": "typescript_save",
|
93 | 93 | "context": [
|
94 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 94 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
95 | 95 | ]
|
96 | 96 | },
|
97 | 97 | {
|
98 | 98 | "keys": [ "ctrl+t", "ctrl+o" ],
|
99 | 99 | "command": "typescript_signature_panel",
|
100 | 100 | "context": [
|
101 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 101 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
102 | 102 | ]
|
103 | 103 | },
|
104 | 104 | {
|
105 | 105 | "keys": ["("],
|
106 | 106 | "command": "typescript_signature_popup",
|
107 | 107 | "context": [
|
108 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }, |
| 108 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }, |
109 | 109 | { "key": "paren_pressed"}
|
110 | 110 | ]
|
111 | 111 | },
|
|
114 | 114 | "command": "typescript_signature_popup",
|
115 | 115 | "args": {"move": "next"},
|
116 | 116 | "context": [
|
117 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }, |
| 117 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }, |
118 | 118 | { "key": "is_popup_visible"}
|
119 | 119 | ]
|
120 | 120 | },
|
|
123 | 123 | "command": "typescript_signature_popup",
|
124 | 124 | "args": {"move": "prev"},
|
125 | 125 | "context": [
|
126 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }, |
| 126 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }, |
127 | 127 | { "key": "is_popup_visible"}
|
128 | 128 | ]
|
129 | 129 | }, // In case when auto match is enabled, only format if not within {}
|
130 | 130 | {
|
131 | 131 | "keys": [ "alt+,"],
|
132 | 132 | "command": "typescript_signature_popup",
|
133 | 133 | "context": [
|
134 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" }, |
| 134 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" }, |
135 | 135 | { "key": "tooltip_supported", "operator": "equal", "operand": true}
|
136 | 136 |
|
137 | 137 | ]
|
|
159 | 159 | { "key": "selection_empty", "operator": "equal", "operand": true },
|
160 | 160 | { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$" },
|
161 | 161 | { "key": "following_text", "operator": "regex_contains", "operand": "^\\}" },
|
162 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 162 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
163 | 163 | ]
|
164 | 164 | },
|
165 | 165 | {
|
166 | 166 | "keys": [ "ctrl+;" ],
|
167 | 167 | "command": "typescript_format_line",
|
168 | 168 | "context": [
|
169 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 169 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
170 | 170 | ]
|
171 | 171 | },
|
172 | 172 | {
|
173 | 173 | "keys": [ "ctrl+shift+]" ],
|
174 | 174 | "command": "typescript_format_brackets",
|
175 | 175 | "context": [
|
176 |
| - { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx" } |
| 176 | + { "key": "selector", "operator": "equal", "operand": "source.ts, source.tsx, source.js, source.jsx" } |
177 | 177 | ]
|
178 | 178 | }
|
179 | 179 | ]
|
0 commit comments