Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codingame/monaco-vscode-host-service-override

Package Overview
Dependencies
Maintainers
0
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codingame/monaco-vscode-host-service-override - npm Package Compare versions

Comparing version 9.0.3 to 10.0.0

4

package.json
{
"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';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc