@codingame/monaco-vscode-host-service-override
Advanced tools
Comparing version 9.0.3 to 10.0.0
{ | ||
"name": "@codingame/monaco-vscode-host-service-override", | ||
"version": "9.0.3", | ||
"version": "10.0.0", | ||
"keywords": [], | ||
@@ -29,4 +29,4 @@ "author": { | ||
"dependencies": { | ||
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3" | ||
"vscode": "npm:@codingame/monaco-vscode-api@10.0.0" | ||
} | ||
} |
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js'; | ||
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event'; | ||
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation'; | ||
import 'vscode/vscode/vs/platform/instantiation/common/extensions'; | ||
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service'; | ||
@@ -12,3 +11,2 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service'; | ||
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service'; | ||
import { Verbosity } from 'vscode/vscode/vs/platform/label/common/label'; | ||
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service'; | ||
@@ -21,3 +19,2 @@ import { ModifierKeyEmitter, onDidRegisterWindow, trackFocus, getActiveDocument, getWindowId, disposableWindowInterval, detectFullscreen, EventType, addDisposableListener, addDisposableThrottledListener } from 'vscode/vscode/vs/base/browser/dom'; | ||
import { IWorkspaceEditingService } from 'vscode/vscode/vs/workbench/services/workspaces/common/workspaceEditing.service'; | ||
import { ShutdownReason } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle'; | ||
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service'; | ||
@@ -34,3 +31,2 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service'; | ||
import { Schemas } from 'vscode/vscode/vs/base/common/network'; | ||
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service'; | ||
import { coalesce } from 'vscode/vscode/vs/base/common/arrays'; | ||
@@ -48,3 +44,3 @@ import { mainWindow, isAuxiliaryWindow } from 'vscode/vscode/vs/base/browser/window'; | ||
let BrowserHostService = class BrowserHostService extends Disposable { | ||
constructor(layoutService, configurationService, fileService, labelService, environmentService, instantiationService, lifecycleService, logService, dialogService, contextService, userDataProfileService, userDataProfilesService) { | ||
constructor(layoutService, configurationService, fileService, labelService, environmentService, instantiationService, lifecycleService, logService, dialogService, contextService, userDataProfilesService) { | ||
super(); | ||
@@ -61,3 +57,2 @@ this.layoutService = layoutService; | ||
this.contextService = contextService; | ||
this.userDataProfileService = userDataProfileService; | ||
this.userDataProfilesService = userDataProfilesService; | ||
@@ -289,6 +284,6 @@ this.shutdownReason = HostShutdownReason.Unknown; | ||
} | ||
const newWindowProfile = (options?.forceProfile | ||
const newWindowProfile = options?.forceProfile | ||
? this.userDataProfilesService.profiles.find(profile => profile.name === options?.forceProfile) | ||
: undefined) ?? this.userDataProfileService.currentProfile; | ||
if (!newWindowProfile.isDefault) { | ||
: undefined; | ||
if (newWindowProfile && !newWindowProfile.isDefault) { | ||
newPayload.push(['profile', newWindowProfile.name]); | ||
@@ -300,6 +295,6 @@ } | ||
if (isFolderToOpen(openable)) { | ||
return this.labelService.getWorkspaceLabel(openable.folderUri, { verbose: Verbosity.LONG }); | ||
return this.labelService.getWorkspaceLabel(openable.folderUri, { verbose: 2 }); | ||
} | ||
if (isWorkspaceToOpen(openable)) { | ||
return this.labelService.getWorkspaceLabel(getWorkspaceIdentifier(openable.workspaceUri), { verbose: Verbosity.LONG }); | ||
return this.labelService.getWorkspaceLabel(getWorkspaceIdentifier(openable.workspaceUri), { verbose: 2 }); | ||
} | ||
@@ -335,3 +330,3 @@ return this.labelService.getUriLabel(openable.fileUri); | ||
if (options?.reuse) { | ||
await this.handleExpectedShutdown(ShutdownReason.LOAD); | ||
await this.handleExpectedShutdown(4 ); | ||
} | ||
@@ -343,6 +338,6 @@ const opened = await this.workspaceProvider.open(workspace, options); | ||
message: ( localize( | ||
790, | ||
802, | ||
"The browser interrupted the opening of a new tab or window. Press 'Open' to open it anyway." | ||
)), | ||
primaryButton: ( localize(791, "&&Open")) | ||
primaryButton: ( localize(803, "&&Open")) | ||
}); | ||
@@ -397,7 +392,7 @@ if (confirmed) { | ||
async reload() { | ||
await this.handleExpectedShutdown(ShutdownReason.RELOAD); | ||
await this.handleExpectedShutdown(3 ); | ||
mainWindow.location.reload(); | ||
} | ||
async close() { | ||
await this.handleExpectedShutdown(ShutdownReason.CLOSE); | ||
await this.handleExpectedShutdown(1 ); | ||
mainWindow.close(); | ||
@@ -443,6 +438,5 @@ } | ||
( (__param(9, IWorkspaceContextService))), | ||
( (__param(10, IUserDataProfileService))), | ||
( (__param(11, IUserDataProfilesService))) | ||
( (__param(10, IUserDataProfilesService))) | ||
], BrowserHostService))); | ||
export { BrowserHostService }; |
import { Emitter } from 'vscode/vscode/vs/base/common/event'; | ||
import { addMatchMediaChangeListener } from 'vscode/vscode/vs/base/browser/browser'; | ||
import 'vscode/vscode/vs/platform/instantiation/common/extensions'; | ||
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle'; | ||
@@ -5,0 +4,0 @@ import 'vscode/vscode/vs/platform/instantiation/common/instantiation'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25335
483
+ Added@codingame/monaco-vscode-api@10.0.0(transitive)
+ Added@codingame/monaco-vscode-base-service-override@10.0.0(transitive)
+ Added@codingame/monaco-vscode-environment-service-override@10.0.0(transitive)
+ Added@codingame/monaco-vscode-extensions-service-override@10.0.0(transitive)
+ Added@codingame/monaco-vscode-files-service-override@10.0.0(transitive)
+ Added@codingame/monaco-vscode-layout-service-override@10.0.0(transitive)
+ Added@codingame/monaco-vscode-quickaccess-service-override@10.0.0(transitive)
+ Added@xterm/addon-clipboard@0.2.0-beta.53(transitive)
+ Added@xterm/addon-image@0.9.0-beta.70(transitive)
+ Added@xterm/addon-search@0.16.0-beta.70(transitive)
+ Added@xterm/addon-serialize@0.14.0-beta.70(transitive)
+ Added@xterm/addon-unicode11@0.9.0-beta.70(transitive)
+ Added@xterm/addon-webgl@0.19.0-beta.70(transitive)
+ Added@xterm/xterm@5.6.0-beta.70(transitive)
+ Addedjs-base64@3.7.7(transitive)
- Removed@codingame/monaco-vscode-api@9.0.3(transitive)
- Removed@codingame/monaco-vscode-base-service-override@9.0.3(transitive)
- Removed@codingame/monaco-vscode-environment-service-override@9.0.3(transitive)
- Removed@codingame/monaco-vscode-extensions-service-override@9.0.3(transitive)
- Removed@codingame/monaco-vscode-files-service-override@9.0.3(transitive)
- Removed@codingame/monaco-vscode-layout-service-override@9.0.3(transitive)
- Removed@codingame/monaco-vscode-quickaccess-service-override@9.0.3(transitive)