Skip to content

Commit 96e996a

Browse files
authored
Merge pull request microsoft#141929 from microsoft/joh/fix504
2 parents ce199e6 + 86b667a commit 96e996a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/editor/browser/services/openerService.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export class OpenerService implements IOpenerService {
216216
// open the url-string AS IS
217217
href = resource;
218218
} else {
219-
// open URI via "new URL(...).href encoding"
220-
href = new URL(externalUri.toString(true)).href;
219+
// open URI using the toString(noEncode)+encodeURI-trick
220+
href = encodeURI(externalUri.toString(true));
221221
}
222222

223223
if (options?.allowContributedOpeners) {

0 commit comments

Comments
 (0)