|
128 | 128 | "when": "false" |
129 | 129 | }, |
130 | 130 | { |
131 | | - "command": "vscode-objectscript.studio.actions", |
132 | | - "when": "vscode-objectscript.connectActive && resourceScheme == isfs" |
| 131 | + "command": "vscode-objectscript.serverCommands.sourceControl", |
| 132 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs || vscode-objectscript.connectActive && !editorIsOpen" |
| 133 | + }, |
| 134 | + { |
| 135 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 136 | + "when": "false" |
| 137 | + }, |
| 138 | + { |
| 139 | + "command": "vscode-objectscript.serverCommands.other", |
| 140 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs || vscode-objectscript.connectActive && !editorIsOpen" |
| 141 | + }, |
| 142 | + { |
| 143 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 144 | + "when": "false" |
133 | 145 | } |
134 | 146 | ], |
135 | 147 | "view/title": [ |
|
157 | 169 | "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:/" |
158 | 170 | }, |
159 | 171 | { |
160 | | - "command": "vscode-objectscript.studio.contextActions", |
| 172 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 173 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:/" |
| 174 | + }, |
| 175 | + { |
| 176 | + "command": "vscode-objectscript.serverCommands.contextOther", |
161 | 177 | "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:/" |
162 | 178 | }, |
163 | 179 | { |
|
182 | 198 | "editor/context": [ |
183 | 199 | { |
184 | 200 | "command": "vscode-objectscript.viewOthers", |
185 | | - "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
| 201 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 202 | + "group": "objectscript@1" |
186 | 203 | }, |
187 | 204 | { |
188 | 205 | "command": "vscode-objectscript.compile", |
189 | | - "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
| 206 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 207 | + "group": "objectscript@2" |
190 | 208 | }, |
191 | 209 | { |
192 | | - "command": "vscode-objectscript.studio.actions", |
193 | | - "when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
| 210 | + "command": "vscode-objectscript.previewXml", |
| 211 | + "when": "editorLangId =~ /^xml/", |
| 212 | + "group": "objectscript@3" |
194 | 213 | }, |
195 | 214 | { |
196 | | - "command": "vscode-objectscript.previewXml", |
197 | | - "when": "editorLangId =~ /^xml/" |
| 215 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 216 | + "when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 217 | + "group": "objectscript@4" |
| 218 | + }, |
| 219 | + { |
| 220 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 221 | + "when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 222 | + "group": "objectscript@5" |
198 | 223 | } |
199 | 224 | ], |
| 225 | + "editor/title": [ |
| 226 | + { |
| 227 | + "command": "vscode-objectscript.serverCommands.sourceControl", |
| 228 | + "group": "navigation@1", |
| 229 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs" |
| 230 | + }, |
| 231 | + { |
| 232 | + "command": "vscode-objectscript.serverCommands.other", |
| 233 | + "group": "navigation@2", |
| 234 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs" |
| 235 | + } |
| 236 | + |
| 237 | + ], |
200 | 238 | "touchBar": [ |
201 | 239 | { |
202 | 240 | "command": "vscode-objectscript.touchBar.compile", |
|
212 | 250 | "explorer/context": [ |
213 | 251 | { |
214 | 252 | "command": "vscode-objectscript.compileFolder", |
215 | | - "when": "vscode-objectscript.connectActive" |
| 253 | + "when": "vscode-objectscript.connectActive", |
| 254 | + "group": "objectscript@1" |
216 | 255 | }, |
217 | 256 | { |
218 | | - "command": "vscode-objectscript.studio.actions", |
219 | | - "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
| 257 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 258 | + "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 259 | + "group": "objectscript@2" |
| 260 | + }, |
| 261 | + { |
| 262 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 263 | + "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 264 | + "group": "objectscript@3" |
220 | 265 | } |
221 | 266 | ] |
222 | 267 | }, |
|
409 | 454 | }, |
410 | 455 | { |
411 | 456 | "category": "ObjectScript", |
412 | | - "command": "vscode-objectscript.studio.actions", |
413 | | - "title": "Studio Actions..." |
| 457 | + "command": "vscode-objectscript.serverCommands.sourceControl", |
| 458 | + "title": "Server Source Control...", |
| 459 | + "icon": "$(source-control)" |
| 460 | + }, |
| 461 | + { |
| 462 | + "category": "ObjectScript", |
| 463 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 464 | + "title": "Server Source Control..." |
| 465 | + }, |
| 466 | + { |
| 467 | + "category": "ObjectScript", |
| 468 | + "command": "vscode-objectscript.serverCommands.other", |
| 469 | + "title": "Server Command Menu...", |
| 470 | + "icon": "$(server-environment)" |
414 | 471 | }, |
415 | 472 | { |
416 | 473 | "category": "ObjectScript", |
417 | | - "command": "vscode-objectscript.studio.contextActions", |
418 | | - "title": "Studio Context Actions..." |
| 474 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 475 | + "title": "Server Command Menu..." |
419 | 476 | } |
420 | 477 | ], |
421 | 478 | "keybindings": [ |
|
0 commit comments