提交 6b7643eb 编写于 作者: J Jackson Kearl

Fix #99062

上级 524fb25f
......@@ -175,10 +175,13 @@ export async function readTrustedDomains(accessor: ServicesAccessor) {
}
} catch (err) { }
const userDomains = ((await authenticationService.getSessions('github')) ?? [])
.map(session => session.account.displayName)
.filter((v, i, a) => a.indexOf(v) === i)
.map(username => `https://github.com/${username}/`);
const userDomains =
authenticationService.isAuthenticationProviderRegistered('github')
? ((await authenticationService.getSessions('github')) ?? [])
.map(session => session.account.displayName)
.filter((v, i, a) => a.indexOf(v) === i)
.map(username => `https://github.com/${username}/`)
: [];
const workspaceDomains = await getRemotes(fileService, textFileService, workspaceContextService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册