|
57 | 57 | "onCommand:vscode-objectscript.explorer.refresh", |
58 | 58 | "onCommand:vscode-objectscript.explorer.openClass", |
59 | 59 | "onCommand:vscode-objectscript.explorer.openRoutine", |
| 60 | + "onCommand:vscode-objectscript.explorer.openCSPFile", |
60 | 61 | "onCommand:vscode-objectscript.compileFolder", |
61 | 62 | "onCommand:vscode-objectscript.importFolder", |
62 | 63 | "onLanguage:objectscript", |
|
160 | 161 | "view/item/context": [ |
161 | 162 | { |
162 | 163 | "command": "vscode-objectscript.explorer.export", |
163 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:/" |
| 164 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:(?!(cspApplication|cspFileNode))/" |
164 | 165 | }, |
165 | 166 | { |
166 | 167 | "command": "vscode-objectscript.explorer.export", |
167 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^dataRootNode:/" |
| 168 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^dataRootNode:(?!cspRootNode)/" |
168 | 169 | }, |
169 | 170 | { |
170 | 171 | "command": "vscode-objectscript.explorer.delete", |
|
185 | 186 | { |
186 | 187 | "command": "vscode-objectscript.explorer.otherNamespace", |
187 | 188 | "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:extra:).)*$/", |
188 | | - "group": "inline" |
| 189 | + "group": "inline@30" |
189 | 190 | }, |
190 | 191 | { |
191 | 192 | "command": "vscode-objectscript.explorer.otherNamespaceClose", |
192 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode:extra:/", |
193 | | - "group": "inline" |
| 193 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:extra:/", |
| 194 | + "group": "inline@30" |
194 | 195 | }, |
195 | 196 | { |
196 | 197 | "command": "vscode-objectscript.explorer.showGenerated", |
197 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:generated:).)*$/" |
| 198 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:generated:).)*$/", |
| 199 | + "group": "inline@20" |
198 | 200 | }, |
199 | 201 | { |
200 | 202 | "command": "vscode-objectscript.explorer.hideGenerated", |
201 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:generated:/" |
| 203 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:generated:/", |
| 204 | + "group": "inline@20" |
202 | 205 | }, |
203 | 206 | { |
204 | 207 | "command": "vscode-objectscript.explorer.showSystem", |
205 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:(%SYS|system):).)*$/" |
| 208 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode((?!:(%SYS|system):).)*$/", |
| 209 | + "group": "inline@10" |
206 | 210 | }, |
207 | 211 | { |
208 | 212 | "command": "vscode-objectscript.explorer.hideSystem", |
209 | | - "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:system:/" |
| 213 | + "when": "view == ObjectScriptExplorer && viewItem =~ /^serverNode.*:system:/", |
| 214 | + "group": "inline@10" |
210 | 215 | } |
211 | 216 | ], |
212 | 217 | "editor/context": [ |
|
408 | 413 | { |
409 | 414 | "command": "vscode-objectscript.explorer.otherNamespace", |
410 | 415 | "title": "View Another Namespace...", |
| 416 | + "icon": "$(add)", |
411 | 417 | "category": "ObjectScript" |
412 | 418 | }, |
413 | 419 | { |
414 | 420 | "command": "vscode-objectscript.explorer.showGenerated", |
415 | | - "title": "Show Generated", |
| 421 | + "title": "Show Generated Items", |
| 422 | + "icon": "$(server-process)", |
416 | 423 | "category": "ObjectScript" |
417 | 424 | }, |
418 | 425 | { |
419 | 426 | "command": "vscode-objectscript.explorer.hideGenerated", |
420 | | - "title": "Hide Generated", |
| 427 | + "title": "Hide Generated Items", |
| 428 | + "icon": "$(server-process)", |
421 | 429 | "category": "ObjectScript" |
422 | 430 | }, |
423 | 431 | { |
424 | 432 | "command": "vscode-objectscript.explorer.showSystem", |
425 | | - "title": "Show System", |
| 433 | + "title": "Show System Items", |
| 434 | + "icon": "$(library)", |
426 | 435 | "category": "ObjectScript" |
427 | 436 | }, |
428 | 437 | { |
429 | 438 | "command": "vscode-objectscript.explorer.hideSystem", |
430 | | - "title": "Hide System", |
| 439 | + "title": "Hide System Items", |
| 440 | + "icon": "$(library)", |
431 | 441 | "category": "ObjectScript" |
432 | 442 | }, |
433 | 443 | { |
434 | 444 | "command": "vscode-objectscript.explorer.otherNamespaceClose", |
435 | 445 | "title": "Close Namespace", |
| 446 | + "icon": "$(remove)", |
436 | 447 | "category": "ObjectScript" |
437 | 448 | }, |
438 | 449 | { |
|
882 | 893 | "minimist": ">=1.2.5", |
883 | 894 | "mocha": "^8.0.1", |
884 | 895 | "nock": "^13.0.0", |
| 896 | + "ovsx": "latest", |
885 | 897 | "prettier": "^2.0.5", |
886 | 898 | "tape": "^5.0.1", |
887 | 899 | "ts-loader": "^7.0.5", |
|
0 commit comments