Commit 6b5762e
Bundle selection ux (#1519)
## Changes
When you land on a workspace without dabs config in the root, you can
now select a sub-folder as the active bundle folder (without changing
the workspace root, and without reloading the whole IDE).
<img width="500" alt="Screenshot 2025-01-16 at 10 40 16"
src="https://github.com/user-attachments/assets/5348c29a-1e8c-4ad3-b54e-bc3c59347922"
/>
The above is for the case when we can't find any sub-projects ourselves.
Clicking on the top button opens an OS folder selection dialog.
When we can detect sub projects, we show the "select sub-folder" button
on top:
<img width="500" alt="Screenshot 2025-01-16 at 10 39 44"
src="https://github.com/user-attachments/assets/f96a0953-7e03-4281-b9a5-d80a1907bbe8"
/>
When you select the sub-folder and initialise the extension, we now show
additional "Local Folder" UI at the top of the configuration:
<img width="497" alt="Screenshot 2025-01-14 at 10 11 09"
src="https://github.com/user-attachments/assets/17270619-c4f0-453f-9d9e-a85574ab3bd4"
/>
<img width="637" alt="Screenshot 2025-01-14 at 10 17 39"
src="https://github.com/user-attachments/assets/af326541-8765-4583-a908-5fbd5cffd8b7"
/>
The UI for selecting sub-folders:
<img width="880" alt="Screenshot 2025-01-14 at 10 11 52"
src="https://github.com/user-attachments/assets/1eee2b12-8747-42da-ab72-89eb688ab4db"
/>
"Select another folder" opens a OS-level selection dialog.
If you select a folder that's part of the workspace, we don't reload the
IDE and just point our extension to it. When the selected folder is
outside of the workspace, we reload the IDE with the folder being the
new workspace root.
After you select some sub-folder it's saved to workspace-scoped vscode
storage, so the next time this workspace is opened our extension already
knows what sub-folder to use.
After the extension is initialised, you can now easily change the active
bundle folder if you have multiple bundles in different sub-folders.
## Tests
Manually and with a few new unit tests, e2e tests will be in the follow
up PR
---------
Co-authored-by: Julia Crawford (Databricks) <[email protected]>1 parent df60b3d commit 6b5762e
File tree
34 files changed
+519
-409
lines changed- packages/databricks-vscode
- resources/python
- src
- bundle
- models
- cluster
- configuration
- models
- file-managers
- language
- notebooks
- test
- e2e
- utils
- ui/configuration-view
- utils
- vscode-objs
- workspace-fs
34 files changed
+519
-409
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
207 | 214 | | |
208 | 215 | | |
| |||
444 | 451 | | |
445 | 452 | | |
446 | 453 | | |
447 | | - | |
| 454 | + | |
448 | 455 | | |
449 | 456 | | |
450 | 457 | | |
451 | 458 | | |
452 | | - | |
| 459 | + | |
453 | 460 | | |
454 | 461 | | |
455 | 462 | | |
456 | 463 | | |
457 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
458 | 470 | | |
459 | 471 | | |
460 | 472 | | |
| |||
464 | 476 | | |
465 | 477 | | |
466 | 478 | | |
467 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
468 | 485 | | |
469 | 486 | | |
470 | 487 | | |
| |||
559 | 576 | | |
560 | 577 | | |
561 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
562 | 589 | | |
563 | 590 | | |
564 | 591 | | |
| |||
Lines changed: 15 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
| 34 | + | |
40 | 35 | | |
41 | 36 | | |
42 | 37 | | |
| |||
68 | 63 | | |
69 | 64 | | |
70 | 65 | | |
71 | | - | |
| 66 | + | |
72 | 67 | | |
73 | 68 | | |
74 | 69 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
| 65 | + | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | 88 | | |
116 | 89 | | |
117 | 90 | | |
| |||
133 | 106 | | |
134 | 107 | | |
135 | 108 | | |
136 | | - | |
| 109 | + | |
137 | 110 | | |
138 | 111 | | |
139 | 112 | | |
| |||
171 | 144 | | |
172 | 145 | | |
173 | 146 | | |
174 | | - | |
| 147 | + | |
175 | 148 | | |
176 | 149 | | |
177 | 150 | | |
| |||
182 | 155 | | |
183 | 156 | | |
184 | 157 | | |
185 | | - | |
| 158 | + | |
186 | 159 | | |
187 | 160 | | |
188 | 161 | | |
| |||
Lines changed: 9 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 18 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 19 | + | |
| 20 | + | |
60 | 21 | | |
61 | 22 | | |
62 | 23 | | |
| |||
68 | 29 | | |
69 | 30 | | |
70 | 31 | | |
71 | | - | |
| 32 | + | |
| 33 | + | |
72 | 34 | | |
73 | 35 | | |
74 | 36 | | |
| |||
97 | 59 | | |
98 | 60 | | |
99 | 61 | | |
100 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
101 | 67 | | |
102 | 68 | | |
103 | 69 | | |
| |||
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
328 | 337 | | |
329 | 338 | | |
330 | 339 | | |
331 | | - | |
| 340 | + | |
| 341 | + | |
332 | 342 | | |
333 | 343 | | |
334 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments