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

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

Package Overview
Dependencies
Maintainers
6
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 10.1.4 to 11.0.0

4

package.json
{
"name": "@codingame/monaco-vscode-base-service-override",
"version": "10.1.4",
"version": "11.0.0",
"keywords": [],

@@ -29,4 +29,4 @@ "author": {

"dependencies": {
"vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
"vscode": "npm:@codingame/monaco-vscode-api@11.0.0"
}
}

@@ -109,3 +109,3 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';

return ( localize(
870,
1036,
"Unable to write into the file. Please open the file to correct errors/warnings in the file and try again."

@@ -112,0 +112,0 @@ ));

@@ -8,3 +8,4 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';

import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
import { createCSSRule, asCSSPropertyValue, removeCSSRulesContainingSelector, createStyleSheet } from 'vscode/vscode/vs/base/browser/dom';
import { createCSSRule, removeCSSRulesContainingSelector, createStyleSheet } from 'vscode/vscode/vs/base/browser/dom';
import { asCSSPropertyValue } from 'vscode/vscode/vs/base/browser/cssValue';
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService.service';

@@ -162,3 +163,3 @@ import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';

badgeClassName = rule.bubbleBadgeClassName;
tooltip = ( localize(871, "Contains emphasized items"));
tooltip = ( localize(1037, "Contains emphasized items"));
}

@@ -165,0 +166,0 @@ return {

@@ -29,3 +29,3 @@ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';

jsonSchema: {
description: ( localize(872, 'Contributes resource label formatting rules.')),
description: ( localize(1038, 'Contributes resource label formatting rules.')),
type: 'array',

@@ -39,3 +39,3 @@ items: {

description: ( localize(
873,
1039,
'URI scheme on which to match the formatter on. For example "file". Simple glob patterns are supported.'

@@ -47,3 +47,3 @@ )),

description: ( localize(
874,
1040,
'URI authority on which to match the formatter on. Simple glob patterns are supported.'

@@ -53,3 +53,3 @@ )),

formatting: {
description: ( localize(875, "Rules for formatting uri resource labels.")),
description: ( localize(1041, "Rules for formatting uri resource labels.")),
type: 'object',

@@ -60,3 +60,3 @@ properties: {

description: ( localize(
876,
1042,
"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables."

@@ -68,3 +68,3 @@ ))

description: ( localize(
877,
1043,
"Separator to be used in the uri label display. '/' or '\' as an example."

@@ -76,3 +76,3 @@ ))

description: ( localize(
878,
1044,
"Controls whether `${path}` substitutions should have starting separator characters stripped."

@@ -84,3 +84,3 @@ ))

description: ( localize(
879,
1045,
"Controls if the start of the uri label should be tildified when possible."

@@ -91,3 +91,3 @@ ))

type: 'string',
description: ( localize(880, "Suffix appended to the workspace label."))
description: ( localize(1046, "Suffix appended to the workspace label."))
}

@@ -271,6 +271,6 @@ }

if (isUntitledWorkspace(workspaceUri, this.environmentService)) {
return ( localize(881, "Untitled (Workspace)"));
return ( localize(1047, "Untitled (Workspace)"));
}
if (isTemporaryWorkspace(workspaceUri)) {
return ( localize(882, "Workspace"));
return ( localize(1048, "Workspace"));
}

@@ -288,3 +288,3 @@ let filename = basename(workspaceUri);

label = ( localize(
883,
1049,
"{0} (Workspace)",

@@ -296,3 +296,3 @@ this.getUriLabel(joinPath(dirname(workspaceUri), filename))

default:
label = ( localize(884, "{0} (Workspace)", filename));
label = ( localize(1050, "{0} (Workspace)", filename));
break;

@@ -299,0 +299,0 @@ }

import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
import { raceCancellation } from 'vscode/vscode/vs/base/common/async';
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
import { insert } from 'vscode/vscode/vs/base/common/arrays';
import { LinkedList } from 'vscode/vscode/vs/base/common/linkedList';
import { isCancellationError, CancellationError } from 'vscode/vscode/vs/base/common/errors';
import { NotificationPriority } from 'vscode/vscode/vs/platform/notification/common/notification';
import { localize } from 'vscode/vscode/vs/nls';
let StoredFileWorkingCopySaveParticipant = class StoredFileWorkingCopySaveParticipant extends Disposable {
get length() { return this.saveParticipants.length; }
constructor(logService) {
get length() { return this.saveParticipants.size; }
constructor(logService, progressService) {
super();
this.logService = logService;
this.saveParticipants = [];
this.progressService = progressService;
this.saveParticipants = ( (new LinkedList()));
}
addSaveParticipant(participant) {
const remove = insert(this.saveParticipants, participant);
const remove = this.saveParticipants.push(participant);
return toDisposable(() => remove());
}
async participate(workingCopy, context, progress, token) {
const cts = ( (new CancellationTokenSource(token)));
workingCopy.model?.pushStackElement();
for (const saveParticipant of this.saveParticipants) {
if (token.isCancellationRequested || workingCopy.isDisposed()) {
break;
progress.report({
message: ( localize(4685, "Running Code Actions and Formatters..."))
});
let bubbleCancel = false;
await this.progressService.withProgress({
priority: NotificationPriority.URGENT,
location: 15 ,
cancellable: ( localize(4686, "Skip")),
delay: workingCopy.isDirty() ? 5000 : 3000
}, async (progress) => {
for (const saveParticipant of this.saveParticipants) {
if (cts.token.isCancellationRequested || workingCopy.isDisposed()) {
break;
}
try {
const promise = saveParticipant.participate(workingCopy, context, progress, cts.token);
await raceCancellation(promise, cts.token);
}
catch (err) {
if (!isCancellationError(err)) {
this.logService.error(err);
}
else if (!cts.token.isCancellationRequested) {
cts.cancel();
bubbleCancel = true;
}
}
}
try {
const promise = saveParticipant.participate(workingCopy, context, progress, token);
await raceCancellation(promise, token);
}
catch (err) {
this.logService.warn(err);
}
}, () => {
cts.cancel();
});
workingCopy.model?.pushStackElement();
cts.dispose();
if (bubbleCancel) {
throw ( (new CancellationError()));
}
workingCopy.model?.pushStackElement();
}
dispose() {
this.saveParticipants.splice(0, this.saveParticipants.length);
this.saveParticipants.clear();
super.dispose();
}
};
StoredFileWorkingCopySaveParticipant = ( __decorate([
( __param(0, ILogService))
], StoredFileWorkingCopySaveParticipant));
StoredFileWorkingCopySaveParticipant = ( (__decorate([
( (__param(0, ILogService))),
( (__param(1, IProgressService)))
], StoredFileWorkingCopySaveParticipant)));
export { StoredFileWorkingCopySaveParticipant };
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