mirror of
https://github.com/microsoft/vscode.git
synced 2026-06-01 13:15:50 +01:00
@@ -331,7 +331,7 @@ export class BrowserMain extends Disposable {
|
||||
const workspaceTrustEnablementService = new WorkspaceTrustEnablementService(configurationService, environmentService);
|
||||
serviceCollection.set(IWorkspaceTrustEnablementService, workspaceTrustEnablementService);
|
||||
|
||||
const workspaceTrustManagementService = new WorkspaceTrustManagementService(configurationService, remoteAuthorityResolverService, storageService, uriIdentityService, environmentService, configurationService, workspaceTrustEnablementService);
|
||||
const workspaceTrustManagementService = new WorkspaceTrustManagementService(configurationService, remoteAuthorityResolverService, storageService, uriIdentityService, environmentService, configurationService, workspaceTrustEnablementService, fileService);
|
||||
serviceCollection.set(IWorkspaceTrustManagementService, workspaceTrustManagementService);
|
||||
|
||||
// Update workspace trust so that configuration is updated accordingly
|
||||
|
||||
@@ -289,7 +289,7 @@ export class DesktopMain extends Disposable {
|
||||
const workspaceTrustEnablementService = new WorkspaceTrustEnablementService(configurationService, environmentService);
|
||||
serviceCollection.set(IWorkspaceTrustEnablementService, workspaceTrustEnablementService);
|
||||
|
||||
const workspaceTrustManagementService = new WorkspaceTrustManagementService(configurationService, remoteAuthorityResolverService, storageService, uriIdentityService, environmentService, configurationService, workspaceTrustEnablementService);
|
||||
const workspaceTrustManagementService = new WorkspaceTrustManagementService(configurationService, remoteAuthorityResolverService, storageService, uriIdentityService, environmentService, configurationService, workspaceTrustEnablementService, fileService);
|
||||
serviceCollection.set(IWorkspaceTrustManagementService, workspaceTrustManagementService);
|
||||
|
||||
// Update workspace trust so that configuration is updated accordingly
|
||||
|
||||
@@ -22,6 +22,7 @@ import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/
|
||||
import { IUriIdentityService } from 'vs/platform/uriIdentity/common/uriIdentity';
|
||||
import { isEqualAuthority } from 'vs/base/common/resources';
|
||||
import { isWeb } from 'vs/base/common/platform';
|
||||
import { IFileService } from 'vs/platform/files/common/files';
|
||||
|
||||
export const WORKSPACE_TRUST_ENABLED = 'security.workspace.trust.enabled';
|
||||
export const WORKSPACE_TRUST_STARTUP_PROMPT = 'security.workspace.trust.startupPrompt';
|
||||
@@ -118,7 +119,8 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
||||
@IUriIdentityService private readonly uriIdentityService: IUriIdentityService,
|
||||
@IWorkbenchEnvironmentService private readonly environmentService: IWorkbenchEnvironmentService,
|
||||
@IWorkspaceContextService private readonly workspaceService: IWorkspaceContextService,
|
||||
@IWorkspaceTrustEnablementService private readonly workspaceTrustEnablementService: IWorkspaceTrustEnablementService
|
||||
@IWorkspaceTrustEnablementService private readonly workspaceTrustEnablementService: IWorkspaceTrustEnablementService,
|
||||
@IFileService private readonly fileService: IFileService
|
||||
) {
|
||||
super();
|
||||
|
||||
@@ -164,6 +166,7 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
|
||||
this.remoteAuthorityResolverService.resolveAuthority(this.environmentService.remoteAuthority)
|
||||
.then(async result => {
|
||||
this._remoteAuthority = result;
|
||||
await this.fileService.activateProvider(Schemas.vscodeRemote);
|
||||
await this.updateWorkspaceTrust();
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user