|
94 | 94 | "args": { "key": "}" },
|
95 | 95 | "context": [
|
96 | 96 | { "key": "selector", "operator": "equal", "operand": "source.ts" },
|
| 97 | + { "key": "setting.typescript_auto_format", "operator": "equal", "operand": true }, |
97 | 98 | { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
|
98 | 99 | { "key": "num_selections", "operator": "equal", "operand": 1},
|
99 | 100 | { "key": "selection_empty", "operator": "equal", "operand": true },
|
|
109 | 110 | "args": { "key": "}" },
|
110 | 111 | "context": [
|
111 | 112 | { "key": "num_selections", "operator": "equal", "operand": 1},
|
| 113 | + { "key": "setting.typescript_auto_format", "operator": "equal", "operand": true }, |
112 | 114 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
|
113 | 115 | { "key": "selector", "operator": "equal", "operand": "source.ts" },
|
114 | 116 | { "key": "setting.auto_match_enabled", "operator": "equal", "operand": false }
|
|
120 | 122 | "args": { "key": ";" },
|
121 | 123 | "context": [
|
122 | 124 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
|
| 125 | + { "key": "setting.typescript_auto_format", "operator": "equal", "operand": true }, |
123 | 126 | { "key": "selector", "operator": "equal", "operand": "source.ts" }
|
124 | 127 | ]
|
125 | 128 | },
|
|
128 | 131 | "command": "typescript_format_on_key",
|
129 | 132 | "args": { "key": "\n" },
|
130 | 133 | "context": [
|
131 |
| - { "key": "setting.typescript_auto_format", "operator": "equal", "operand": true }, |
| 134 | + { "key": "setting.typescript_auto_indent", "operator": "equal", "operand": true }, |
132 | 135 | { "key": "auto_complete_visible", "operator": "equal", "operand": false },
|
133 | 136 | { "key": "selector", "operator": "not_equal", "operand": "meta.scope.between-tag-pair" },
|
134 | 137 | { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
|
|
154 | 157 | "keys": [ "enter" ],
|
155 | 158 | "command": "typescript_auto_indent_on_enter_between_curly_brackets",
|
156 | 159 | "context": [
|
157 |
| - { "key": "setting.typescript_auto_format", "operator": "equal", "operand": true }, |
| 160 | + { "key": "setting.typescript_auto_indent", "operator": "equal", "operand": true }, |
158 | 161 | { "key": "auto_complete_visible", "operator": "equal", "operand": false },
|
159 | 162 | { "key": "selection_empty", "operator": "equal", "operand": true },
|
160 | 163 | { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$" },
|
|
0 commit comments