Commit e10a5c0
committed
fix(Mountain): Add inline workspace folders to extension host init data
Add `folders` array directly to the WorkspaceDTO in InitData so extensions that read `vscode.workspace.workspaceFolders` synchronously in their `activate()` (vscode.git, eamodio.gitlens, typescript) see the real folders immediately instead of `[]` until a delta fires. Cocoon's `WorkspaceNamespace/Index.ts` reads this at shim construction time, so the folders must be present in the initial payload.
Also add `configuration` field to pass the workspace config path, and change CWD-autoload default to ON in debug builds (OFF in release). Debug builds need folders for `vscode.git` / `eamodio.gitlens` to scan repositories and surface tree-views, while release keeps the stock VS Code UX. Override with `LAND_AUTOLOAD_CWD=0` or `=1`.1 parent 26891b3 commit e10a5c0
2 files changed
Lines changed: 40 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
112 | 121 | | |
113 | | - | |
114 | | - | |
| 122 | + | |
| 123 | + | |
115 | 124 | | |
116 | 125 | | |
117 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
347 | 368 | | |
348 | 369 | | |
349 | 370 | | |
| |||
353 | 374 | | |
354 | 375 | | |
355 | 376 | | |
| 377 | + | |
| 378 | + | |
356 | 379 | | |
357 | 380 | | |
358 | 381 | | |
| |||
0 commit comments