diff options
author | Benjamin Pasero <benjpas@microsoft.com> | 2020-09-17 17:20:23 +0300 |
---|---|---|
committer | Benjamin Pasero <benjpas@microsoft.com> | 2020-09-17 17:20:23 +0300 |
commit | 01472963d7b9f963feb5932d7a9276f4dc085619 (patch) | |
tree | fd01e7ba9e671565a69bd98eb9058a94fea2415d /src/vs/workbench/contrib/extensions/electron-sandbox | |
parent | 82d30d49b25f734b62cc9bca5d173603bb05bd2d (diff) |
sandbox - rename electron service => native host service
Diffstat (limited to 'src/vs/workbench/contrib/extensions/electron-sandbox')
-rw-r--r-- | src/vs/workbench/contrib/extensions/electron-sandbox/extensionsActions.ts | 6 | ||||
-rw-r--r-- | src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsActions.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsActions.ts index 2df5b00fd45..a24fb6882b8 100644 --- a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsActions.ts +++ b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsActions.ts @@ -9,7 +9,7 @@ import { IFileService } from 'vs/platform/files/common/files'; import { URI } from 'vs/base/common/uri'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService'; import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService'; -import { IElectronService } from 'vs/platform/electron/electron-sandbox/electron'; +import { INativeHostService } from 'vs/platform/native/electron-sandbox/native'; import { Schemas } from 'vs/base/common/network'; export class OpenExtensionsFolderAction extends Action { @@ -20,7 +20,7 @@ export class OpenExtensionsFolderAction extends Action { constructor( id: string, label: string, - @IElectronService private readonly electronService: IElectronService, + @INativeHostService private readonly nativeHostService: INativeHostService, @IFileService private readonly fileService: IFileService, @IWorkbenchEnvironmentService private readonly environmentService: INativeWorkbenchEnvironmentService ) { @@ -40,7 +40,7 @@ export class OpenExtensionsFolderAction extends Action { } if (itemToShow.scheme === Schemas.file) { - return this.electronService.showItemInFolder(itemToShow.fsPath); + return this.nativeHostService.showItemInFolder(itemToShow.fsPath); } } } diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts index fb26edac909..ab09ba5a258 100644 --- a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts +++ b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts @@ -17,7 +17,7 @@ import { onUnexpectedError } from 'vs/base/common/errors'; import { IDialogService } from 'vs/platform/dialogs/common/dialogs'; import Severity from 'vs/base/common/severity'; import { IOpenerService } from 'vs/platform/opener/common/opener'; -import { IElectronService } from 'vs/platform/electron/electron-sandbox/electron'; +import { INativeHostService } from 'vs/platform/native/electron-sandbox/native'; import { INativeWorkbenchEnvironmentService } from 'vs/workbench/services/environment/electron-sandbox/environmentService'; import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService'; @@ -122,7 +122,7 @@ class ReportExtensionSlowAction extends Action { @IDialogService private readonly _dialogService: IDialogService, @IOpenerService private readonly _openerService: IOpenerService, @IProductService private readonly _productService: IProductService, - @IElectronService private readonly _electronService: IElectronService, + @INativeHostService private readonly _nativeHostService: INativeHostService, @IWorkbenchEnvironmentService private readonly _environmentService: INativeWorkbenchEnvironmentService ) { super('report.slow', localize('cmd.report', "Report Issue")); @@ -137,7 +137,7 @@ class ReportExtensionSlowAction extends Action { await profiler.writeProfile(data, path).then(undefined, onUnexpectedError); // build issue - const os = await this._electronService.getOSProperties(); + const os = await this._nativeHostService.getOSProperties(); const title = encodeURIComponent('Extension causes high cpu load'); const osVersion = `${os.type} ${os.arch} ${os.release}`; const message = `:warning: Make sure to **attach** this file from your *home*-directory:\n:warning:\`${path}\`\n\nFind more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load`; |