This commit is contained in:
Ladislau Szomoru
2021-06-05 20:58:06 +02:00
parent 8d536ff248
commit da65c67063
@@ -272,6 +272,11 @@ export class WorkspaceTrustManagementService extends Disposable implements IWork
// Update workspace trust
this._trustState.isTrusted = trusted;
// Reset acceptsOutOfWorkspaceFiles
if (!trusted) {
this._trustState.acceptsOutOfWorkspaceFiles = false;
}
// Run workspace trust transition participants
await this._trustTransitionManager.participate(trusted);
@@ -742,10 +747,6 @@ class WorkspaceTrustState {
set isTrusted(value: boolean | undefined) {
this._mementoObject[this._isTrustedKey] = value;
if (!value) {
this._mementoObject[this._acceptsOutOfWorkspaceFilesKey] = value;
}
this._memento.saveMemento();
}
}