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:
Pedro Pacheco
2025-03-24 16:57:36 +00:00
parent 54e42906fb
commit eae2f57127

View File

@@ -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));
}