Skip to content

Commit

Permalink
Merge pull request #141929 from microsoft/joh/fix504
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken authored Feb 1, 2022
2 parents ce199e6 + 86b667a commit 96e996a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/browser/services/openerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export class OpenerService implements IOpenerService {
// open the url-string AS IS
href = resource;
} else {
// open URI via "new URL(...).href encoding"
href = new URL(externalUri.toString(true)).href;
// open URI using the toString(noEncode)+encodeURI-trick
href = encodeURI(externalUri.toString(true));
}

if (options?.allowContributedOpeners) {
Expand Down

0 comments on commit 96e996a

Please sign in to comment.