sandbox - enable sandboxed file service by default

This commit is contained in:
Benjamin Pasero 2021-10-28 09:35:36 +02:00
parent e418b6bf3e
commit d781c69d7e
No known key found for this signature in database
GPG key ID: E6380CC4C8219E65
2 changed files with 2 additions and 4 deletions

View file

@ -34,7 +34,6 @@ import { IUndoRedoService } from 'vs/platform/undoRedo/common/undoRedo';
import { IExplorerService } from 'vs/workbench/contrib/files/browser/files';
import { FileEditorInputSerializer, FileEditorWorkingCopyEditorHandler } from 'vs/workbench/contrib/files/browser/editors/fileEditorHandler';
import { ModesRegistry } from 'vs/editor/common/modes/modesRegistry';
import product from 'vs/platform/product/common/product';
class FileUriLabelContribution implements IWorkbenchContribution {
@ -311,7 +310,7 @@ configurationRegistry.registerConfiguration({
'files.experimentalSandboxedFileService': {
'type': 'boolean',
'description': nls.localize('files.experimentalSandboxedFileService', "Experimental: changes the file service to be sandboxed. Do not change this unless instructed!"),
'default': product.quality !== 'stable',
'default': true,
'scope': ConfigurationScope.APPLICATION
},
}

View file

@ -14,7 +14,6 @@ import { INativeHostService } from 'vs/platform/native/electron-sandbox/native';
import { SharedDesktopMain } from 'vs/workbench/electron-sandbox/shared.desktop.main';
import { IMainProcessService } from 'vs/platform/ipc/electron-sandbox/services';
import { ISharedProcessWorkerWorkbenchService } from 'vs/workbench/services/sharedProcess/electron-sandbox/sharedProcessWorkerWorkbenchService';
import product from 'vs/platform/product/common/product';
class DesktopMain extends SharedDesktopMain {
@ -28,7 +27,7 @@ class DesktopMain extends SharedDesktopMain {
// Local Files
let diskFileSystemProvider: ElectronFileSystemProvider | SandboxedDiskFileSystemProvider;
if (this.configuration.experimentalSandboxedFileService ?? product.quality !== 'stable') {
if (this.configuration.experimentalSandboxedFileService !== false) {
logService.info('[FileService]: Using sandbox ready file system provider');
diskFileSystemProvider = this._register(new SandboxedDiskFileSystemProvider(mainProcessService, sharedProcessWorkerWorkbenchService, logService));
} else {