|
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 | 210 | "command": "vscode-objectscript.studio.actions", |
193 | 211 | "when": "resourceScheme == isfs && vscode-objectscript.connectActive" |
194 | 212 | }, |
195 | | - { |
196 | 213 | "command": "vscode-objectscript.previewXml", |
197 | | - "when": "editorLangId =~ /^xml/" |
| 214 | + "when": "editorLangId =~ /^xml/", |
| 215 | + "group": "objectscript@3" |
| 216 | + }, |
| 217 | + { |
| 218 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 219 | + "when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 220 | + "group": "objectscript@4" |
| 221 | + }, |
| 222 | + { |
| 223 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 224 | + "when": "resourceScheme == isfs && editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 225 | + "group": "objectscript@5" |
198 | 226 | } |
199 | 227 | ], |
| 228 | + "editor/title": [ |
| 229 | + { |
| 230 | + "command": "vscode-objectscript.serverCommands.sourceControl", |
| 231 | + "group": "navigation@1", |
| 232 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs" |
| 233 | + }, |
| 234 | + { |
| 235 | + "command": "vscode-objectscript.serverCommands.other", |
| 236 | + "group": "navigation@2", |
| 237 | + "when": "vscode-objectscript.connectActive && resourceScheme == isfs" |
| 238 | + } |
| 239 | + |
| 240 | + ], |
200 | 241 | "touchBar": [ |
201 | 242 | { |
202 | 243 | "command": "vscode-objectscript.touchBar.compile", |
|
212 | 253 | "explorer/context": [ |
213 | 254 | { |
214 | 255 | "command": "vscode-objectscript.compileFolder", |
215 | | - "when": "vscode-objectscript.connectActive" |
| 256 | + "when": "vscode-objectscript.connectActive", |
| 257 | + "group": "objectscript@1" |
216 | 258 | }, |
217 | 259 | { |
218 | | - "command": "vscode-objectscript.studio.actions", |
219 | | - "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
| 260 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 261 | + "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 262 | + "group": "objectscript@2" |
| 263 | + }, |
| 264 | + { |
| 265 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 266 | + "when": "resourceScheme == isfs && resourceLangId =~ /^objectscript/ && vscode-objectscript.connectActive", |
| 267 | + "group": "objectscript@3" |
220 | 268 | } |
221 | 269 | ] |
222 | 270 | }, |
|
409 | 457 | }, |
410 | 458 | { |
411 | 459 | "category": "ObjectScript", |
412 | | - "command": "vscode-objectscript.studio.actions", |
413 | | - "title": "Studio Actions..." |
| 460 | + "command": "vscode-objectscript.serverCommands.sourceControl", |
| 461 | + "title": "Server Source Control...", |
| 462 | + "icon": "$(source-control)" |
| 463 | + }, |
| 464 | + { |
| 465 | + "category": "ObjectScript", |
| 466 | + "command": "vscode-objectscript.serverCommands.contextSourceControl", |
| 467 | + "title": "Server Source Control..." |
| 468 | + }, |
| 469 | + { |
| 470 | + "category": "ObjectScript", |
| 471 | + "command": "vscode-objectscript.serverCommands.other", |
| 472 | + "title": "Server Command Menu...", |
| 473 | + "icon": "$(server-environment)" |
414 | 474 | }, |
415 | 475 | { |
416 | 476 | "category": "ObjectScript", |
417 | | - "command": "vscode-objectscript.studio.contextActions", |
418 | | - "title": "Studio Context Actions..." |
| 477 | + "command": "vscode-objectscript.serverCommands.contextOther", |
| 478 | + "title": "Server Command Menu..." |
419 | 479 | } |
420 | 480 | ], |
421 | 481 | "keybindings": [ |
|
0 commit comments