提交 4454769a 编写于 作者: P Pine Wu

Trust https://go.microsoft.com. Fix build

上级 ccd6d203
...@@ -50,14 +50,17 @@ Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions).registe ...@@ -50,14 +50,17 @@ Registry.as<IWorkbenchActionRegistry>(ActionExtensions.WorkbenchActions).registe
localize('developer', 'Developer') localize('developer', 'Developer')
); );
const VSCODE_DOMAIN = 'https://code.visualstudio.com'; const DEAFULT_TRUSTED_DOMAINS = [
'https://code.visualstudio.com',
'https://go.microsoft.com'
];
const configureTrustedDomainsHandler = async ( const configureTrustedDomainsHandler = async (
quickInputService: IQuickInputService, quickInputService: IQuickInputService,
storageService: IStorageService, storageService: IStorageService,
domainToConfigure?: string domainToConfigure?: string
) => { ) => {
let trustedDomains: string[] = [VSCODE_DOMAIN]; let trustedDomains: string[] = DEAFULT_TRUSTED_DOMAINS;
try { try {
const trustedDomainsSrc = storageService.get('http.trustedDomains', StorageScope.GLOBAL); const trustedDomainsSrc = storageService.get('http.trustedDomains', StorageScope.GLOBAL);
...@@ -158,7 +161,7 @@ class OpenerValidatorContributions implements IWorkbenchContribution { ...@@ -158,7 +161,7 @@ class OpenerValidatorContributions implements IWorkbenchContribution {
return true; return true;
} }
let trustedDomains: string[] = [VSCODE_DOMAIN]; let trustedDomains: string[] = DEAFULT_TRUSTED_DOMAINS;
try { try {
const trustedDomainsSrc = this._storageService.get('http.trustedDomains', StorageScope.GLOBAL); const trustedDomainsSrc = this._storageService.get('http.trustedDomains', StorageScope.GLOBAL);
if (trustedDomainsSrc) { if (trustedDomainsSrc) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册