@codingame/monaco-vscode-base-service-override
Advanced tools
Comparing version 10.1.4 to 11.0.0
{ | ||
"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 }; |
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
79400
1718
+ Added@codingame/monaco-vscode-api@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-comments-extensions-interactive-notebook-search-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-extensions-interactive-notebook-quickaccess-search-terminal-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-extensions-notebook-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-extensions-notebook-task-terminal-testing-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-extensions-notebook-terminal-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-chat-extensions-notebook-terminal-testing-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-comments-extensions-common@11.0.0(transitive)
+ Added@codingame/monaco-vscode-environment-service-override@11.0.0(transitive)
+ Added@codingame/monaco-vscode-extensions-service-override@11.0.0(transitive)
+ Added@codingame/monaco-vscode-files-service-override@11.0.0(transitive)
+ Added@codingame/monaco-vscode-host-service-override@11.0.0(transitive)
+ Added@codingame/monaco-vscode-layout-service-override@11.0.0(transitive)
+ Added@codingame/monaco-vscode-quickaccess-service-override@11.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)
+ Addedjschardet@3.1.4(transitive)
- Removed@codingame/monaco-vscode-api@10.1.4(transitive)
- Removed@codingame/monaco-vscode-environment-service-override@10.1.4(transitive)
- Removed@codingame/monaco-vscode-extensions-service-override@10.1.4(transitive)
- Removed@codingame/monaco-vscode-files-service-override@10.1.4(transitive)
- Removed@codingame/monaco-vscode-host-service-override@10.1.4(transitive)
- Removed@codingame/monaco-vscode-layout-service-override@10.1.4(transitive)
- Removed@codingame/monaco-vscode-quickaccess-service-override@10.1.4(transitive)
- Removedjschardet@3.1.3(transitive)