|
1 | 1 | { |
2 | 2 | "name": "explorer-exclude", |
3 | 3 | "displayName": "Explorer Exclude", |
4 | | - "version": "1.3.1", |
| 4 | + "version": "1.3.2", |
5 | 5 | "description": "Explorer Exclude lets you easily Hide Files & Folders with Dynamic Filter Options. Add a New 'Hidden Items' Explorer Pane for you to Manage and Quickly Toggle Visibility of Hidden Items.", |
6 | 6 | "license": "MIT", |
7 | 7 | "publisher": "PeterSchmalfeldt", |
|
47 | 47 | } |
48 | 48 | ], |
49 | 49 | "activationEvents": [ |
50 | | - "onStartupFinished", |
51 | | - "onView:extension", |
| 50 | + "onCommand:explorer-exclude.disableAll", |
| 51 | + "onCommand:explorer-exclude.enableAll", |
52 | 52 | "onCommand:explorer-exclude.enabled", |
53 | 53 | "onCommand:explorer-exclude.exclude", |
| 54 | + "onCommand:explorer-exclude.hasLoaded", |
| 55 | + "onCommand:explorer-exclude.missingWorkspace", |
54 | 56 | "onCommand:explorer-exclude.remove", |
| 57 | + "onCommand:explorer-exclude.reset", |
55 | 58 | "onCommand:explorer-exclude.toggle", |
56 | | - "onCommand:explorer-exclude.toggleAllOn", |
57 | 59 | "onCommand:explorer-exclude.toggleAllOff", |
58 | | - "onCommand:explorer-exclude.disableAll", |
59 | | - "onCommand:explorer-exclude.enableAll", |
60 | | - "onCommand:explorer-exclude.reset" |
| 60 | + "onCommand:explorer-exclude.toggleAllOn", |
| 61 | + "onStartupFinished", |
| 62 | + "onView:extension" |
61 | 63 | ], |
62 | 64 | "contributes": { |
63 | 65 | "configuration": [ |
|
92 | 94 | } |
93 | 95 | ] |
94 | 96 | }, |
| 97 | + "viewsWelcome": [ |
| 98 | + { |
| 99 | + "view": "explorerExclude.pane.items", |
| 100 | + "contents": "%package.loading%", |
| 101 | + "when": "!explorer-exclude.missingWorkspace && !explorer-exclude.hasLoaded" |
| 102 | + }, |
| 103 | + { |
| 104 | + "view": "explorerExclude.pane.items", |
| 105 | + "contents": "%debug.logger.missingWorkspace%", |
| 106 | + "when": "explorer-exclude.missingWorkspace" |
| 107 | + } |
| 108 | + ], |
95 | 109 | "commands": [ |
96 | 110 | { |
97 | 111 | "command": "explorer-exclude.exclude", |
|
165 | 179 | { |
166 | 180 | "command": "explorer-exclude.exclude", |
167 | 181 | "group": "explorer-exclude@1", |
168 | | - "when": "activeViewlet == 'workbench.view.explorer'" |
| 182 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && activeViewlet == 'workbench.view.explorer'" |
169 | 183 | } |
170 | 184 | ], |
171 | 185 | "view/item/context": [ |
172 | 186 | { |
173 | 187 | "command": "explorer-exclude.remove", |
174 | 188 | "group": "explorer-exclude@1", |
175 | | - "when": "view == explorerExclude.pane.items && viewItem && viewItem != '**/.git' && viewItem != '**/.svn'&& viewItem != '**/.hg'&& viewItem != '**/CVS'&& viewItem != '**/.DS_Store' && viewItem != '**/Thumbs.db' && viewItem != '**/*.git'" |
| 189 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items && viewItem && viewItem != '**/.git' && viewItem != '**/.svn'&& viewItem != '**/.hg'&& viewItem != '**/CVS'&& viewItem != '**/.DS_Store' && viewItem != '**/Thumbs.db' && viewItem != '**/*.git'" |
176 | 190 | } |
177 | 191 | ], |
178 | 192 | "view/title": [ |
179 | 193 | { |
180 | 194 | "command": "explorer-exclude.disableAll", |
181 | 195 | "group": "navigation@10", |
182 | | - "when": "view == explorerExclude.pane.items" |
| 196 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items" |
183 | 197 | }, |
184 | 198 | { |
185 | 199 | "command": "explorer-exclude.enableAll", |
186 | 200 | "group": "navigation@11", |
187 | | - "when": "view == explorerExclude.pane.items" |
| 201 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items" |
188 | 202 | }, |
189 | 203 | { |
190 | 204 | "command": "explorer-exclude.toggleAllOn", |
191 | 205 | "group": "navigation@12", |
192 | | - "when": "view == explorerExclude.pane.items && !explorer-exclude.enabled" |
| 206 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items && !explorer-exclude.enabled" |
193 | 207 | }, |
194 | 208 | { |
195 | 209 | "command": "explorer-exclude.toggleAllOff", |
196 | 210 | "group": "navigation@12", |
197 | | - "when": "view == explorerExclude.pane.items && explorer-exclude.enabled" |
| 211 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items && explorer-exclude.enabled" |
198 | 212 | }, |
199 | 213 | { |
200 | 214 | "command": "explorer-exclude.reset", |
201 | 215 | "group": "navigation@13", |
202 | | - "when": "view == explorerExclude.pane.items" |
| 216 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items" |
203 | 217 | }, |
204 | 218 | { |
205 | 219 | "command": "explorer-exclude.openSettings", |
206 | 220 | "group": "navigation@14", |
207 | | - "when": "view == explorerExclude.pane.items" |
| 221 | + "when": "explorer-exclude.hasLoaded && !explorer-exclude.missingWorkspace && view == explorerExclude.pane.items" |
208 | 222 | } |
209 | 223 | ] |
210 | 224 | } |
|
0 commit comments