Commit acfa61a
authored
Add bundle project manager (#1011)
"Bundle project manager" is being initialised before configModel or
connectionManager.
If necessary, it does automatic migration from the legacy projects to
the bundles (will be implemented in the follow-up).
If it detects multiple bundle projects and offers to choose which one to
open. If it detects a bundle config in the root of the workspace it
kicks off configModel and connectionManager.
If it detects no bundle config in the root, it offers to create a
project (spawning the Databricks CLI in the terminal)
I've played around with displaying notifications for things like "hey,
chose one project to open", or "there's no config in your workspace,
would you like to init a new project?", but they don't flow well with
existing quick-pick/input wizards and are pretty easy to miss. Currently
I'm using welcome views to show such information:
The default view is still the same:

If we don't detect bundle config in the root, but there are subfolders
with bundles, we show an additional text and a button:

It's still possible to login in this state, after which we will also
show "init" button:

If there are no sub-projects, then we just show login button alone in
the view:
1 parent d8852bd commit acfa61a
File tree
11 files changed
+441
-31
lines changed- packages/databricks-vscode
- src
- bundle
- cli
- configuration
- ui
- vscode-objs
11 files changed
+441
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
268 | 274 | | |
269 | 275 | | |
270 | 276 | | |
271 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
272 | 283 | | |
273 | 284 | | |
274 | 285 | | |
| |||
280 | 291 | | |
281 | 292 | | |
282 | 293 | | |
283 | | - | |
| 294 | + | |
284 | 295 | | |
285 | 296 | | |
286 | 297 | | |
287 | 298 | | |
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
291 | 306 | | |
292 | 307 | | |
293 | 308 | | |
| |||
337 | 352 | | |
338 | 353 | | |
339 | 354 | | |
340 | | - | |
| 355 | + | |
341 | 356 | | |
342 | 357 | | |
343 | 358 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
57 | 85 | | |
58 | 86 | | |
59 | 87 | | |
| |||
0 commit comments