mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 21:28:04 +00:00
Fix #240654: Avoid encoding reserved chars in JSON schema URL
Use skipEncoding in uri.toString(true) to prevent percent‑encoding of characters like ":", "&" and "=" when building the URI. This ensures the JSON schema URL remains valid.
This commit is contained in:
@@ -363,7 +363,7 @@ async function startClientWithParticipants(_context: ExtensionContext, languageP
|
||||
// handle content request
|
||||
client.onRequest(VSCodeContentRequest.type, async (uriPath: string) => {
|
||||
const uri = Uri.parse(uriPath);
|
||||
const uriString = uri.toString();
|
||||
const uriString = uri.toString(true);
|
||||
if (uri.scheme === 'untitled') {
|
||||
throw new ResponseError(3, l10n.t('Unable to load {0}', uriString));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user