debt - consolidate process usage

This commit is contained in:
Benjamin Pasero
2021-03-15 15:59:30 +01:00
parent cf439681f6
commit 393cc7f4a2
9 changed files with 72 additions and 50 deletions

View File

@@ -15,7 +15,7 @@ import { IEditorService } from 'vs/workbench/services/editor/common/editorServic
import { IAccessibilityService } from 'vs/platform/accessibility/common/accessibility';
import { IStartupMetrics, AbstractTimerService, Writeable, ITimerService } from 'vs/workbench/services/timer/browser/timerService';
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
import { context, process } from 'vs/base/parts/sandbox/electron-sandbox/globals';
import { process } from 'vs/base/parts/sandbox/electron-sandbox/globals';
import { registerSingleton } from 'vs/platform/instantiation/common/extensions';
export class TimerService extends AbstractTimerService {
@@ -87,7 +87,7 @@ registerSingleton(ITimerService, TimerService);
export function didUseCachedData(): boolean {
// TODO@sandbox need a different way to figure out if cached data was used
if (context.sandbox) {
if (process.sandboxed) {
return true;
}
// We surely don't use cached data when we don't tell the loader to do so