Skip to content

Commit 389c5dd

Browse files
authored
Merge pull request #244934 from pedrofrazaopacheco/240654-json-wrong-encoding-of-json-schema-url
Fixes #240654: Avoid encoding reserved chars in JSON schema URL
2 parents a4e2777 + eae2f57 commit 389c5dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/json-language-features/client/src/jsonClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ async function startClientWithParticipants(_context: ExtensionContext, languageP
371371
// handle content request
372372
client.onRequest(VSCodeContentRequest.type, async (uriPath: string) => {
373373
const uri = Uri.parse(uriPath);
374-
const uriString = uri.toString();
374+
const uriString = uri.toString(true);
375375
if (uri.scheme === 'untitled') {
376376
throw new ResponseError(3, l10n.t('Unable to load {0}', uriString));
377377
}

0 commit comments

Comments
 (0)