|
72 | 72 | "dark": "icons/files_dark.svg" |
73 | 73 | } |
74 | 74 | }, |
75 | | - { |
76 | | - "command": "entityframework.setStartupProject", |
77 | | - "title": "Set as Startup Project", |
78 | | - "icon": { |
79 | | - "light": "icons/files_light.svg", |
80 | | - "dark": "icons/files_dark.svg" |
81 | | - } |
82 | | - }, |
83 | | - { |
84 | | - "command": "entityframework.setProject", |
85 | | - "title": "Set as Project", |
86 | | - "icon": { |
87 | | - "light": "icons/files_light.svg", |
88 | | - "dark": "icons/files_dark.svg" |
89 | | - } |
90 | | - }, |
91 | 75 | { |
92 | 76 | "command": "entityframework.generateERD", |
93 | 77 | "title": "Generate ER Diagram", |
|
112 | 96 | "dark": "icons/refresh_dark.svg" |
113 | 97 | } |
114 | 98 | }, |
| 99 | + { |
| 100 | + "command": "entityframework.refreshTreeNoCache", |
| 101 | + "title": "Refresh", |
| 102 | + "icon": { |
| 103 | + "light": "icons/refresh_light.svg", |
| 104 | + "dark": "icons/refresh_dark.svg" |
| 105 | + } |
| 106 | + }, |
115 | 107 | { |
116 | 108 | "command": "entityframework.refreshDbContextTree", |
117 | 109 | "title": "Refresh", |
|
175 | 167 | "command": "entityframework.refreshTree", |
176 | 168 | "when": "false" |
177 | 169 | }, |
| 170 | + { |
| 171 | + "command": "entityframework.refreshTreeNoCache", |
| 172 | + "when": "false" |
| 173 | + }, |
178 | 174 | { |
179 | 175 | "command": "entityframework.refreshProjectTree", |
180 | 176 | "when": "false" |
|
227 | 223 | "group": "navigation" |
228 | 224 | }, |
229 | 225 | { |
230 | | - "command": "entityframework.refreshTree", |
| 226 | + "command": "entityframework.refreshTreeNoCache", |
231 | 227 | "when": "view == entityframeworkTree", |
232 | 228 | "group": "navigation" |
233 | 229 | } |
|
268 | 264 | "when": "viewItem =~ /^migration-.*\\|?can-undo\\|?.*$/", |
269 | 265 | "group": "context@1" |
270 | 266 | }, |
| 267 | + { |
| 268 | + "command": "entityframework.refreshDbContextTree", |
| 269 | + "when": "viewItem == dbContext", |
| 270 | + "group": "inline@1" |
| 271 | + }, |
271 | 272 | { |
272 | 273 | "command": "entityframework.addMigration", |
273 | 274 | "when": "viewItem == dbContext", |
274 | | - "group": "inline@4" |
| 275 | + "group": "inline@2" |
275 | 276 | }, |
276 | 277 | { |
277 | 278 | "command": "entityframework.addMigration", |
|
297 | 298 | { |
298 | 299 | "command": "entityframework.scaffold", |
299 | 300 | "when": "viewItem == project", |
| 301 | + "group": "inline@2" |
| 302 | + }, |
| 303 | + { |
| 304 | + "command": "entityframework.refreshProjectTree", |
| 305 | + "when": "viewItem == project", |
300 | 306 | "group": "inline@1" |
301 | 307 | }, |
302 | 308 | { |
|
308 | 314 | "command": "entityframework.refreshProjectTree", |
309 | 315 | "when": "viewItem == project", |
310 | 316 | "group": "context@2" |
311 | | - }, |
312 | | - { |
313 | | - "command": "entityframework.setProject", |
314 | | - "when": "viewItem == project", |
315 | | - "group": "context@3" |
316 | | - }, |
317 | | - { |
318 | | - "command": "entityframework.setStartupProject", |
319 | | - "when": "viewItem == project", |
320 | | - "group": "context@4" |
321 | 317 | } |
322 | 318 | ] |
323 | 319 | }, |
|
0 commit comments