refs #123521
This commit is contained in:
parent
ec4babc198
commit
bf24ab16e0
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,7 @@ import { IStorageService, StorageScope, StorageTarget } from 'vs/platform/storag
|
|||
import { splitName } from 'vs/base/common/labels';
|
||||
import { IHostService } from 'vs/workbench/services/host/browser/host';
|
||||
import { IBannerItem, IBannerService } from 'vs/workbench/services/banner/browser/bannerService';
|
||||
import { getVirtualWorkspaceScheme } from 'vs/platform/remote/common/remoteHosts';
|
||||
|
||||
const BANNER_RESTRICTED_MODE = 'workbench.banner.restrictedMode';
|
||||
const STARTUP_PROMPT_SHOWN_KEY = 'workspace.trust.startupPrompt.shown';
|
||||
|
@ -150,6 +151,12 @@ export class WorkspaceTrustRequestHandler extends Disposable implements IWorkben
|
|||
return;
|
||||
}
|
||||
|
||||
// Don't show modal prompt for virtual workspaces by default
|
||||
if (getVirtualWorkspaceScheme(this.workspaceContextService.getWorkspace()) !== undefined) {
|
||||
this.updateWorkbenchIndicators(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.startupPromptSetting === 'never') {
|
||||
this.updateWorkbenchIndicators(false);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue