|
39 | 39 | }, |
40 | 40 | "activationEvents": [ |
41 | 41 | "workspaceContains:*.cls", |
42 | | - "onFileSystem:isfs", |
| 42 | + "workspaceContains:*.mac", |
43 | 43 | "onCommand:vscode-objectscript.export", |
44 | 44 | "onCommand:vscode-objectscript.compile", |
45 | 45 | "onCommand:vscode-objectscript.viewOthers", |
46 | 46 | "onCommand:vscode-objectscript.previewXml", |
47 | 47 | "onCommand:vscode-objectscript.explorer.refresh", |
48 | 48 | "onCommand:vscode-objectscript.explorer.openClass", |
49 | 49 | "onCommand:vscode-objectscript.explorer.openRoutine", |
50 | | - "onCommand:vscode-objectscript.explorer.hideSystem", |
| 50 | + "onCommand:vscode-objectscript.compileFolder", |
51 | 51 | "onLanguage:objectscript", |
52 | 52 | "onLanguage:objectscript-class", |
53 | 53 | "onLanguage:objectscript-macros", |
54 | 54 | "onLanguage:xml", |
55 | 55 | "onView:ObjectScriptExplorer", |
| 56 | + "onFileSystem:isfs", |
56 | 57 | "onFileSystem:objectscript", |
57 | 58 | "onDebugInitialConfigurations" |
58 | 59 | ], |
|
70 | 71 | }, |
71 | 72 | { |
72 | 73 | "command": "vscode-objectscript.compile", |
73 | | - "when": "vscode-objectscript.connectActive" |
| 74 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
74 | 75 | }, |
75 | 76 | { |
76 | 77 | "command": "vscode-objectscript.compileWithFlags", |
77 | | - "when": "vscode-objectscript.connectActive" |
| 78 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
78 | 79 | }, |
79 | 80 | { |
80 | 81 | "command": "vscode-objectscript.compileAll", |
|
86 | 87 | }, |
87 | 88 | { |
88 | 89 | "command": "vscode-objectscript.viewOthers", |
89 | | - "when": "vscode-objectscript.connectActive" |
| 90 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
90 | 91 | }, |
91 | 92 | { |
92 | 93 | "command": "vscode-objectscript.subclass", |
93 | | - "when": "vscode-objectscript.connectActive" |
| 94 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
94 | 95 | }, |
95 | 96 | { |
96 | 97 | "command": "vscode-objectscript.superclass", |
97 | | - "when": "vscode-objectscript.connectActive" |
| 98 | + "when": "editorLangId =~ /^objectscript/ && vscode-objectscript.connectActive" |
98 | 99 | }, |
99 | 100 | { |
100 | 101 | "command": "vscode-objectscript.previewXml", |
101 | | - "when": "vscode-objectscript.connectActive" |
| 102 | + "when": "editorLangId = xml && vscode-objectscript.connectActive" |
102 | 103 | }, |
103 | 104 | { |
104 | 105 | "command": "vscode-objectscript.explorer.export", |
105 | | - "when": "true" |
| 106 | + "when": "vscode-objectscript.connectActive" |
106 | 107 | }, |
107 | 108 | { |
108 | 109 | "command": "vscode-objectscript.explorer.delete", |
109 | 110 | "when": "false" |
110 | 111 | }, |
111 | 112 | { |
112 | 113 | "command": "vscode-objectscript.explorer.refresh", |
113 | | - "when": "true" |
114 | | - }, |
115 | | - { |
116 | | - "command": "vscode-objectscript.explorer.showSystem", |
117 | | - "when": "true" |
| 114 | + "when": "vscode-objectscript.connectActive" |
118 | 115 | }, |
119 | 116 | { |
120 | | - "command": "vscode-objectscript.explorer.hideSystem", |
121 | | - "when": "true" |
| 117 | + "command": "vscode-objectscript.compileFolder", |
| 118 | + "when": "false" |
122 | 119 | } |
123 | 120 | ], |
124 | 121 | "view/title": [ |
|
141 | 138 | "command": "vscode-objectscript.explorer.delete", |
142 | 139 | "when": "view == ObjectScriptExplorer && viewItem =~ /^dataNode:/" |
143 | 140 | }, |
144 | | - { |
145 | | - "command": "vscode-objectscript.explorer.showSystem", |
146 | | - "when": "view == ObjectScriptExplorer && viewItem == serverNode" |
147 | | - }, |
148 | | - { |
149 | | - "command": "vscode-objectscript.explorer.hideSystem", |
150 | | - "when": "view == ObjectScriptExplorer && viewItem == serverNodeSystem" |
151 | | - }, |
152 | 141 | { |
153 | 142 | "command": "vscode-objectscript.explorer.otherNamespace", |
154 | 143 | "when": "view == ObjectScriptExplorer && viewItem == serverNode", |
|
309 | 298 | "command": "vscode-objectscript.compileAllWithFlags", |
310 | 299 | "title": "Compile all namespace files with specified flags" |
311 | 300 | }, |
312 | | - { |
313 | | - "command": "vscode-objectscript.explorer.showSystem", |
314 | | - "title": "Show system objects", |
315 | | - "category": "ObjecScript" |
316 | | - }, |
317 | | - { |
318 | | - "command": "vscode-objectscript.explorer.hideSystem", |
319 | | - "title": "Hide system objects", |
320 | | - "category": "ObjecScript" |
321 | | - }, |
322 | 301 | { |
323 | 302 | "command": "vscode-objectscript.explorer.export", |
324 | 303 | "title": "Export", |
|
0 commit comments