This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Commit 7766118
committed
use
The `toString` function on `vscode.Uri` will aggressively apply percent
encoding even if unnecessary for some character+component cases.
This affects the `+` in the filename of nightly versions and the `=` in
the query parameter. While it is valid to percent encode even if
unnecessary, this can still lead to confusion about whether the url
is valid if the reader is unfamiliar with the rules around
percent encoding.
There is no downside to just using `URL` instead of `vscode.Uri` so
that we get more readable urls. This can be especially helpful if the
encoded url happens to be shown to the extension user through the
error message of an exception as an example.URL instead of vscode.Uri to avoid unnecessary percent encoding1 parent 51ead57 commit 7766118
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | | - | |
165 | | - | |
| 164 | + | |
| 165 | + | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
0 commit comments