mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
Cleanup deprecated IEnvironmentService.configuration property (#141859)
* renames and reductions * adopt for files to open, diff, wait * remove from tests * backup path * accessibility support * remove unused * more inlines * perf * removal * more cleanup * removal of workbench config object
This commit is contained in:
@@ -38,11 +38,11 @@ export class TimerService extends AbstractTimerService {
|
||||
@IStorageService private readonly _storageService: IStorageService
|
||||
) {
|
||||
super(lifecycleService, contextService, extensionService, updateService, paneCompositeService, editorService, accessibilityService, telemetryService, layoutService);
|
||||
this.setPerformanceMarks('main', _environmentService.configuration.perfMarks);
|
||||
this.setPerformanceMarks('main', _environmentService.window.perfMarks);
|
||||
}
|
||||
|
||||
protected _isInitialStartup(): boolean {
|
||||
return Boolean(this._environmentService.configuration.isInitialStartup);
|
||||
return Boolean(this._environmentService.window.isInitialStartup);
|
||||
}
|
||||
protected _didUseCachedData(): boolean {
|
||||
return didUseCachedData(this._productService, this._storageService, this._environmentService);
|
||||
@@ -97,7 +97,7 @@ export function didUseCachedData(productService: IProductService, storageService
|
||||
// this being the first start with the commit
|
||||
// or subsequent
|
||||
if (typeof _didUseCachedData !== 'boolean') {
|
||||
if (!environmentService.configuration.codeCachePath || !productService.commit) {
|
||||
if (!environmentService.window.isCodeCaching || !productService.commit) {
|
||||
_didUseCachedData = false; // we only produce cached data whith commit and code cache path
|
||||
} else if (storageService.get(lastRunningCommitStorageKey, StorageScope.GLOBAL) === productService.commit) {
|
||||
_didUseCachedData = true; // subsequent start on same commit, assume cached data is there
|
||||
|
||||
Reference in New Issue
Block a user