Commit 7886871
Fix file URIs using wrong workspace folder in multi-root workspaces (#8261)
* Initial plan
* Initial plan for fixing wrong file URIs with multiple roots
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix wrong file URIs with multiple roots by using correct workspace folder
Pass repository rootUri to TemporaryState.write so it can find the correct
workspace folder name instead of always using the first one.
Fixes issue where vscode-userdata URIs contained the wrong workspace folder
path in multi-root workspace scenarios.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add comment documenting readState limitation for multi-root workspaces
Added a comment to readState noting that it currently only supports the
first workspace folder, and that it should accept a repositoryUri parameter
if multi-root support is needed in the future.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add multi-root workspace support to readState method
Updated readState to accept optional repositoryUri parameter and find the
matching workspace folder, mirroring the logic in writeState. This ensures
consistency when reading files written with the correct workspace folder
path in multi-root workspaces.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix some stuff
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 8cfa2af commit 7886871
2 files changed
Lines changed: 34 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
43 | 44 | | |
44 | | - | |
45 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
47 | 59 | | |
48 | 60 | | |
| |||
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
71 | | - | |
| 83 | + | |
72 | 84 | | |
73 | | - | |
74 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
75 | 98 | | |
76 | 99 | | |
77 | 100 | | |
| |||
99 | 122 | | |
100 | 123 | | |
101 | 124 | | |
102 | | - | |
| 125 | + | |
103 | 126 | | |
104 | 127 | | |
105 | 128 | | |
106 | 129 | | |
107 | | - | |
| 130 | + | |
108 | 131 | | |
109 | 132 | | |
110 | | - | |
| 133 | + | |
111 | 134 | | |
112 | 135 | | |
113 | 136 | | |
114 | 137 | | |
115 | | - | |
| 138 | + | |
116 | 139 | | |
117 | 140 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
0 commit comments