Commit 8958a72
Log a warning when skipping workspace folders without a URI
Restore the per-folder warning that the previous refactor dropped. Silently
discarding malformed workspace folders makes it hard for server operators to
diagnose why a client's folder didn't take effect, and it matches the behavior
the PR description advertises.
Logging each skipped folder requires the explicit loop, so revert the pure
`GetValidWorkspaceFolders` helper (and its dedicated tests); the existing
`AddWorkspaceFoldersIgnoresNullAndUrilessFolders` regression test still covers
null input, URI-less/null folders, and the downstream dereference.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5a9a5ce commit 8958a72
2 files changed
Lines changed: 14 additions & 37 deletions
File tree
- src/PowerShellEditorServices/Services/Workspace
- test/PowerShellEditorServices.Test/Session
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
126 | 139 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
Lines changed: 0 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | 115 | | |
141 | 116 | | |
142 | 117 | | |
| |||
0 commit comments