Skip to content

Commit

Permalink
fix #140907
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jan 24, 2022
1 parent b5605ab commit a81c3b0
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 @@ -224,8 +224,8 @@ export class OpenerService implements IOpenerService {
// open the url-string AS IS
href = resource;
} else {
// open URI using the toString(noEncode)+encodeURI-trick
href = encodeURI(externalUri.toString(true));
// open URI via "new URL(...).href encoding"
href = new URL(externalUri.toString(true)).href;
}

if (options?.allowContributedOpeners) {
Expand Down

0 comments on commit a81c3b0

Please sign in to comment.