Commit b1a234f
Gracefully handle virtual /Repos/me folder (#693)
## Changes
The extension tries to find the root folder (/Repos/me or
/Users/me/.ide) depending on what the sync destination type is (repos or
workspace). The current root is stored in `currentFsRoot`. In case it
fails in finding the `currentFsRoot` (/Repos/me and /Users/me can be
virtual when a user hasn't interacted with these folders yet), it always
tries to create it under /User/me. This can be an issue if
`currentFsRoot` points to /Repos/me.
* This PR fixes this behaviour, by only allowing creation of
`workspaceFsRoot` (which always points to /Users/me/.ide) under /User/me
and not `currentFsRoot`.
* Also fix error reporting to show more verbose errors.
Creating a repo from the extension automatically handles generation of
/Repos/me folder as well.
Fixes #683 #691 #688
## Tests
* Manually verified to work after the change.
---------
Co-authored-by: Fabian Jakobs <fabian.jakobs@databricks.com>1 parent a5a9dbd commit b1a234f
File tree
1 file changed
+28
-33
lines changed- packages/databricks-vscode/src/configuration
1 file changed
+28
-33
lines changedLines changed: 28 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 223 | + | |
235 | 224 | | |
236 | 225 | | |
237 | 226 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
243 | 239 | | |
244 | 240 | | |
245 | 241 | | |
246 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
247 | 253 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
| 254 | + | |
| 255 | + | |
261 | 256 | | |
262 | 257 | | |
263 | 258 | | |
| |||
0 commit comments