Commit 9836774
authored
Focus root folder for packages w/ sub-packages (#1766)
When loading a workspace we check if there is only one folder added, and
if so we focus it. Focusing a folder then kicks off things like package
resolution and test discovery.
However, if a package contained sub-packages we treated this as a
multi-root workspace and would not focus any. In this situation we
actually want to focus the root folder.
If we're in a multi-root workspace then we maintain the old behaviour as
its unclear what folder should be focused.
Issue: #17601 parent c198a25 commit 9836774
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
339 | 340 | | |
340 | | - | |
| 341 | + | |
341 | 342 | | |
342 | | - | |
343 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
| 350 | + | |
348 | 351 | | |
349 | 352 | | |
350 | 353 | | |
| |||
0 commit comments