Skip to content

Commit 4823512

Browse files
author
Jackson Kearl
committed
Dont repeat userDomains in trusted domains doc
1 parent 307cb32 commit 4823512

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/vs/workbench/contrib/url/browser/trustedDomains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export async function readTrustedDomains(accessor: ServicesAccessor) {
170170

171171
const userDomains = ((await authenticationService.getSessions('github')) ?? [])
172172
.map(session => session.account.displayName)
173+
.filter((v, i, a) => a.indexOf(v) === i)
173174
.map(username => `https://github.com/${username}/`);
174175

175176
const workspaceDomains = await getRemotes(fileService, textFileService, workspaceContextService);

0 commit comments

Comments
 (0)