New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
6
Versions
111
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 11.1.2 to 12.0.0

vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts

3

index.d.ts

@@ -1,1 +0,2 @@

export { default } from 'vscode/service-override/host';
import type { IEditorOverrideServices } from "vscode/vscode/vs/editor/standalone/browser/standaloneServices";
export default function getServiceOverride(): IEditorOverrideServices;

@@ -1,1 +0,15 @@

export { default } from './host.js';
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/host.service';
import { IHostColorSchemeService } from 'vscode/vscode/vs/workbench/services/themes/common/hostColorSchemeService.service';
import { BrowserHostService } from './vscode/src/vs/workbench/services/host/browser/browserHostService.js';
import { BrowserHostColorSchemeService } from './vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js';
function getServiceOverride() {
return {
[IHostService.toString()]: new SyncDescriptor(BrowserHostService, [], true),
[IHostColorSchemeService.toString()]: new SyncDescriptor(BrowserHostColorSchemeService, [], true)
};
}
export { getServiceOverride as default };
{
"name": "@codingame/monaco-vscode-host-service-override",
"version": "11.1.2",
"version": "12.0.0",
"private": false,
"description": "VSCode public API plugged on the monaco editor - host service-override",
"keywords": [],

@@ -15,4 +17,15 @@ "author": {

"type": "module",
"private": false,
"description": "VSCode public API plugged on the monaco editor - host service-override",
"dependencies": {
"@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common": "12.0.0",
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "12.0.0",
"vscode": "npm:@codingame/monaco-vscode-api@12.0.0"
},
"peerDependencies": {
"@codingame/monaco-vscode-lifecycle-service-override": "12.0.0"
},
"peerDependenciesMeta": {
"@codingame/monaco-vscode-lifecycle-service-override": {
"optional": true
}
},
"main": "index.js",

@@ -26,8 +39,10 @@ "module": "index.js",

"./vscode/*": {
"default": "./vscode/src/*.js"
"default": "./vscode/src/*.js",
"types": "./vscode/src/*.d.ts"
},
"./*": {
"default": "./*.js",
"types": "./*.d.ts"
}
},
"dependencies": {
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
}
}

@@ -1,4 +0,6 @@

import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
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';

@@ -9,4 +11,5 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';

import { pathsToEditors, isResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
import { whenEditorClosed } from 'vscode/vscode/vs/workbench/browser/editor';
import { whenEditorClosed } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
import { Verbosity } from '@codingame/monaco-vscode-82e231ca-6ed7-5920-b2b8-1874ccc0be07-common/vscode/vs/platform/label/common/label';
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';

@@ -19,2 +22,3 @@ 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';

@@ -24,3 +28,3 @@ import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';

import { localize } from 'vscode/vscode/vs/nls';
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
import Severity from 'vscode/vscode/vs/base/common/severity';
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';

@@ -38,7 +42,7 @@ import { DomEmitter } from 'vscode/vscode/vs/base/browser/event';

var HostShutdownReason;
( ((function(HostShutdownReason) {
(function (HostShutdownReason) {
HostShutdownReason[HostShutdownReason["Unknown"] = 1] = "Unknown";
HostShutdownReason[HostShutdownReason["Keyboard"] = 2] = "Keyboard";
HostShutdownReason[HostShutdownReason["Api"] = 3] = "Api";
})(HostShutdownReason || (HostShutdownReason = {}))));
})(HostShutdownReason || (HostShutdownReason = {}));
let BrowserHostService = class BrowserHostService extends Disposable {

@@ -102,7 +106,7 @@ constructor(layoutService, configurationService, fileService, labelService, environmentService, instantiationService, lifecycleService, logService, dialogService, contextService, userDataProfilesService) {

get onDidChangeFocus() {
const emitter = this._register(( (new Emitter())));
const emitter = this._register(( new Emitter()));
this._register(Event.runAndSubscribe(onDidRegisterWindow, ({ window, disposables }) => {
const focusTracker = disposables.add(trackFocus(window));
const visibilityTracker = disposables.add(( (new DomEmitter(window.document, 'visibilitychange'))));
Event.any(( (Event.map(focusTracker.onDidFocus, () => this.hasFocus, disposables))), ( (Event.map(focusTracker.onDidBlur, () => this.hasFocus, disposables))), ( (Event.map(visibilityTracker.event, () => this.hasFocus, disposables))), ( (Event.map(this.onDidChangeActiveWindow, () => this.hasFocus, disposables))))(focus => emitter.fire(focus));
const visibilityTracker = disposables.add(( new DomEmitter(window.document, 'visibilitychange')));
Event.any(( Event.map(focusTracker.onDidFocus, () => this.hasFocus, disposables)), ( Event.map(focusTracker.onDidBlur, () => this.hasFocus, disposables)), ( Event.map(visibilityTracker.event, () => this.hasFocus, disposables)), ( Event.map(this.onDidChangeActiveWindow, () => this.hasFocus, disposables)))(focus => emitter.fire(focus));
}, { window: mainWindow, disposables: this._store }));

@@ -121,3 +125,3 @@ return Event.latch(emitter.event, undefined, this._store);

get onDidChangeActiveWindow() {
const emitter = this._register(( (new Emitter())));
const emitter = this._register(( new Emitter()));
this._register(Event.runAndSubscribe(onDidRegisterWindow, ({ window, disposables }) => {

@@ -140,3 +144,3 @@ const windowId = getWindowId(window);

get onDidChangeFullScreen() {
const emitter = this._register(( (new Emitter())));
const emitter = this._register(( new Emitter()));
this._register(Event.runAndSubscribe(onDidRegisterWindow, ({ window, disposables }) => {

@@ -207,7 +211,7 @@ const windowId = getWindowId(window);

else {
const environment = ( (new Map()));
environment.set('mergeFile1', ( (editors[0].resource.toString())));
environment.set('mergeFile2', ( (editors[1].resource.toString())));
environment.set('mergeFileBase', ( (editors[2].resource.toString())));
environment.set('mergeFileResult', ( (editors[3].resource.toString())));
const environment = ( new Map());
environment.set('mergeFile1', ( editors[0].resource.toString()));
environment.set('mergeFile2', ( editors[1].resource.toString()));
environment.set('mergeFileBase', ( editors[2].resource.toString()));
environment.set('mergeFileResult', ( editors[3].resource.toString()));
this.doOpen(undefined, { payload: Array.from(environment.entries()) });

@@ -229,5 +233,5 @@ }

else {
const environment = ( (new Map()));
environment.set('diffFileSecondary', ( (editors[0].resource.toString())));
environment.set('diffFilePrimary', ( (editors[1].resource.toString())));
const environment = ( new Map());
environment.set('diffFileSecondary', ( editors[0].resource.toString()));
environment.set('diffFilePrimary', ( editors[1].resource.toString()));
this.doOpen(undefined, { payload: Array.from(environment.entries()) });

@@ -255,4 +259,4 @@ }

else {
const environment = ( (new Map()));
environment.set('openFile', ( (openable.fileUri.toString())));
const environment = ( new Map());
environment.set('openFile', ( openable.fileUri.toString()));
if (options?.gotoLineMode) {

@@ -268,3 +272,3 @@ environment.set('gotoLineMode', 'true');

(async () => {
await this.instantiationService.invokeFunction(accessor => whenEditorClosed(accessor, ( (fileOpenables.map(fileOpenable => fileOpenable.fileUri)))));
await this.instantiationService.invokeFunction(accessor => whenEditorClosed(accessor, ( fileOpenables.map(fileOpenable => fileOpenable.fileUri))));
await this.fileService.del(waitMarkerFileURI);

@@ -280,5 +284,5 @@ })();

preservePayload(isEmptyWindow, options) {
const newPayload = ( (new Array()));
const newPayload = ( new Array());
if (!isEmptyWindow && this.environmentService.extensionDevelopmentLocationURI) {
newPayload.push(['extensionDevelopmentPath', ( (this.environmentService.extensionDevelopmentLocationURI.toString()))]);
newPayload.push(['extensionDevelopmentPath', ( this.environmentService.extensionDevelopmentLocationURI.toString())]);
if (this.environmentService.debugExtensionHost.debugId) {

@@ -301,6 +305,6 @@ newPayload.push(['debugId', this.environmentService.debugExtensionHost.debugId]);

if (isFolderToOpen(openable)) {
return this.labelService.getWorkspaceLabel(openable.folderUri, { verbose: 2 });
return this.labelService.getWorkspaceLabel(openable.folderUri, { verbose: Verbosity.LONG });
}
if (isWorkspaceToOpen(openable)) {
return this.labelService.getWorkspaceLabel(getWorkspaceIdentifier(openable.workspaceUri), { verbose: 2 });
return this.labelService.getWorkspaceLabel(getWorkspaceIdentifier(openable.workspaceUri), { verbose: Verbosity.LONG });
}

@@ -336,3 +340,3 @@ return this.labelService.getUriLabel(openable.fileUri);

if (options?.reuse) {
await this.handleExpectedShutdown(4 );
await this.handleExpectedShutdown(ShutdownReason.LOAD);
}

@@ -342,8 +346,8 @@ const opened = await this.workspaceProvider.open(workspace, options);

const { confirmed } = await this.dialogService.confirm({
type: Severity$1.Warning,
type: Severity.Warning,
message: ( localize(
1329,
11587,
"The browser interrupted the opening of a new tab or window. Press 'Open' to open it anyway."
)),
primaryButton: ( localize(1330, "&&Open"))
primaryButton: ( localize(11588, "&&Open"))
});

@@ -398,7 +402,7 @@ if (confirmed) {

async reload() {
await this.handleExpectedShutdown(3 );
await this.handleExpectedShutdown(ShutdownReason.RELOAD);
mainWindow.location.reload();
}
async close() {
await this.handleExpectedShutdown(1 );
await this.handleExpectedShutdown(ShutdownReason.CLOSE);
mainWindow.close();

@@ -421,3 +425,3 @@ }

async getScreenshot() {
const store = ( (new DisposableStore()));
const store = ( new DisposableStore());
const video = document.createElement('video');

@@ -434,4 +438,4 @@ store.add(toDisposable(() => video.remove()));

await Promise.all([
( (new Promise(r => store.add(addDisposableListener(video, 'loadedmetadata', () => r()))))),
( (new Promise(r => store.add(addDisposableListener(video, 'canplaythrough', () => r())))))
( new Promise(r => store.add(addDisposableListener(video, 'loadedmetadata', () => r())))),
( new Promise(r => store.add(addDisposableListener(video, 'canplaythrough', () => r()))))
]);

@@ -446,5 +450,5 @@ const canvas = document.createElement('canvas');

ctx.drawImage(video, 0, 0, canvas.width, canvas.height);
const blob = await ( (new Promise((resolve) => canvas.toBlob((blob) => resolve(blob), 'image/jpeg', 0.95))));
const blob = await ( new Promise((resolve) => canvas.toBlob((blob) => resolve(blob), 'image/jpeg', 0.95)));
if (!blob) {
throw ( (new Error('Failed to create blob from canvas')));
throw ( new Error('Failed to create blob from canvas'));
}

@@ -466,26 +470,29 @@ return blob.arrayBuffer();

}
async getNativeWindowHandle(_windowId) {
return undefined;
}
};
BrowserHostService.__decorator = ( (__decorate([
BrowserHostService.__decorator = ( __decorate([
memoize
], BrowserHostService.prototype, "onDidChangeFocus", null)));
BrowserHostService.__decorator = ( (__decorate([
], BrowserHostService.prototype, "onDidChangeFocus", null));
BrowserHostService.__decorator = ( __decorate([
memoize
], BrowserHostService.prototype, "onDidChangeActiveWindow", null)));
BrowserHostService.__decorator = ( (__decorate([
], BrowserHostService.prototype, "onDidChangeActiveWindow", null));
BrowserHostService.__decorator = ( __decorate([
memoize
], BrowserHostService.prototype, "onDidChangeFullScreen", null)));
BrowserHostService = ( (__decorate([
( (__param(0, ILayoutService))),
( (__param(1, IConfigurationService))),
( (__param(2, IFileService))),
( (__param(3, ILabelService))),
( (__param(4, IBrowserWorkbenchEnvironmentService))),
( (__param(5, IInstantiationService))),
( (__param(6, ILifecycleService))),
( (__param(7, ILogService))),
( (__param(8, IDialogService))),
( (__param(9, IWorkspaceContextService))),
( (__param(10, IUserDataProfilesService)))
], BrowserHostService)));
], BrowserHostService.prototype, "onDidChangeFullScreen", null));
BrowserHostService = ( __decorate([
( __param(0, ILayoutService)),
( __param(1, IConfigurationService)),
( __param(2, IFileService)),
( __param(3, ILabelService)),
( __param(4, IBrowserWorkbenchEnvironmentService)),
( __param(5, IInstantiationService)),
( __param(6, ILifecycleService)),
( __param(7, ILogService)),
( __param(8, IDialogService)),
( __param(9, IWorkspaceContextService)),
( __param(10, IUserDataProfilesService))
], BrowserHostService));
export { BrowserHostService };

@@ -0,3 +1,5 @@

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';

@@ -4,0 +6,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