mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-30 13:31:07 +01:00
debt - consolidate process usage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user