@codingame/monaco-vscode-base-service-override 37.0.0 → 37.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +1 -1
- package/vscode/src/vs/workbench/services/label/common/labelService.js +13 -13
- package/vscode/src/vs/workbench/services/request/browser/requestService.js +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-base-service-override",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - base service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "37.
|
|
18
|
+
"@codingame/monaco-vscode-api": "37.1.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -137,7 +137,7 @@ let JSONEditingService = class JSONEditingService {
|
|
|
137
137
|
case JSONEditingErrorCode.ERROR_INVALID_FILE:
|
|
138
138
|
{
|
|
139
139
|
return localize(
|
|
140
|
-
|
|
140
|
+
19504,
|
|
141
141
|
"Unable to write into the file. Please open the file to correct errors/warnings in the file and try again."
|
|
142
142
|
);
|
|
143
143
|
}
|
|
@@ -182,7 +182,7 @@ class DecorationStyles {
|
|
|
182
182
|
const strikethrough = ( data.some(d => d.strikethrough));
|
|
183
183
|
if (onlyChildren) {
|
|
184
184
|
badgeClassName = rule.bubbleBadgeClassName;
|
|
185
|
-
tooltip = ( localize(
|
|
185
|
+
tooltip = ( localize(19554, "Contains emphasized items"));
|
|
186
186
|
}
|
|
187
187
|
return {
|
|
188
188
|
labelClassName,
|
|
@@ -32,7 +32,7 @@ import { escapeRegExpCharacters } from '@codingame/monaco-vscode-api/vscode/vs/b
|
|
|
32
32
|
const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
33
33
|
extensionPoint: "resourceLabelFormatters",
|
|
34
34
|
jsonSchema: {
|
|
35
|
-
description: ( localize(
|
|
35
|
+
description: ( localize(19869, "Contributes resource label formatting rules.")),
|
|
36
36
|
type: "array",
|
|
37
37
|
items: {
|
|
38
38
|
type: "object",
|
|
@@ -41,52 +41,52 @@ const resourceLabelFormattersExtPoint = ExtensionsRegistry.registerExtensionPoin
|
|
|
41
41
|
scheme: {
|
|
42
42
|
type: "string",
|
|
43
43
|
description: ( localize(
|
|
44
|
-
|
|
44
|
+
19870,
|
|
45
45
|
"URI scheme on which to match the formatter on. For example \"file\". Simple glob patterns are supported."
|
|
46
46
|
))
|
|
47
47
|
},
|
|
48
48
|
authority: {
|
|
49
49
|
type: "string",
|
|
50
50
|
description: ( localize(
|
|
51
|
-
|
|
51
|
+
19871,
|
|
52
52
|
"URI authority on which to match the formatter on. Simple glob patterns are supported."
|
|
53
53
|
))
|
|
54
54
|
},
|
|
55
55
|
formatting: {
|
|
56
|
-
description: ( localize(
|
|
56
|
+
description: ( localize(19872, "Rules for formatting uri resource labels.")),
|
|
57
57
|
type: "object",
|
|
58
58
|
properties: {
|
|
59
59
|
label: {
|
|
60
60
|
type: "string",
|
|
61
61
|
description: ( localize(
|
|
62
|
-
|
|
62
|
+
19873,
|
|
63
63
|
"Label rules to display. For example: myLabel:/${path}. ${path}, ${scheme}, ${authority} and ${authoritySuffix} are supported as variables."
|
|
64
64
|
))
|
|
65
65
|
},
|
|
66
66
|
separator: {
|
|
67
67
|
type: "string",
|
|
68
68
|
description: ( localize(
|
|
69
|
-
|
|
69
|
+
19874,
|
|
70
70
|
"Separator to be used in the uri label display. '/' or '' as an example."
|
|
71
71
|
))
|
|
72
72
|
},
|
|
73
73
|
stripPathStartingSeparator: {
|
|
74
74
|
type: "boolean",
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
19875,
|
|
77
77
|
"Controls whether `${path}` substitutions should have starting separator characters stripped."
|
|
78
78
|
))
|
|
79
79
|
},
|
|
80
80
|
tildify: {
|
|
81
81
|
type: "boolean",
|
|
82
82
|
description: ( localize(
|
|
83
|
-
|
|
83
|
+
19876,
|
|
84
84
|
"Controls if the start of the uri label should be tildified when possible."
|
|
85
85
|
))
|
|
86
86
|
},
|
|
87
87
|
workspaceSuffix: {
|
|
88
88
|
type: "string",
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(19877, "Suffix appended to the workspace label."))
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -367,10 +367,10 @@ let LabelService = class LabelService extends Disposable {
|
|
|
367
367
|
}
|
|
368
368
|
doGetWorkspaceLabel(workspaceUri, options) {
|
|
369
369
|
if (isUntitledWorkspace(workspaceUri, this.environmentService)) {
|
|
370
|
-
return localize(
|
|
370
|
+
return localize(19878, "Untitled (Workspace)");
|
|
371
371
|
}
|
|
372
372
|
if (isTemporaryWorkspace(workspaceUri)) {
|
|
373
|
-
return localize(
|
|
373
|
+
return localize(19879, "Workspace");
|
|
374
374
|
}
|
|
375
375
|
let filename = basename(workspaceUri);
|
|
376
376
|
if (filename.endsWith(WORKSPACE_EXTENSION)) {
|
|
@@ -383,14 +383,14 @@ let LabelService = class LabelService extends Disposable {
|
|
|
383
383
|
break;
|
|
384
384
|
case Verbosity.LONG:
|
|
385
385
|
label = ( localize(
|
|
386
|
-
|
|
386
|
+
19880,
|
|
387
387
|
"{0} (Workspace)",
|
|
388
388
|
this.getUriLabel(joinPath(dirname(workspaceUri), filename))
|
|
389
389
|
));
|
|
390
390
|
break;
|
|
391
391
|
case Verbosity.MEDIUM:
|
|
392
392
|
default:
|
|
393
|
-
label = ( localize(
|
|
393
|
+
label = ( localize(19881, "{0} (Workspace)", filename));
|
|
394
394
|
break;
|
|
395
395
|
}
|
|
396
396
|
if (options?.verbose === Verbosity.SHORT) {
|
|
@@ -15,7 +15,7 @@ import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/
|
|
|
15
15
|
let BrowserRequestService = class BrowserRequestService extends AbstractRequestService {
|
|
16
16
|
constructor(remoteAgentService, configurationService, loggerService) {
|
|
17
17
|
const logger = loggerService.createLogger(`network`, {
|
|
18
|
-
name: ( localize(
|
|
18
|
+
name: ( localize(20013, "Network")),
|
|
19
19
|
group: windowLogGroup
|
|
20
20
|
});
|
|
21
21
|
const logService = ( new LogService(logger));
|
package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js
CHANGED
|
@@ -29,13 +29,13 @@ let StoredFileWorkingCopySaveParticipant = class StoredFileWorkingCopySavePartic
|
|
|
29
29
|
const cts = ( new CancellationTokenSource(token));
|
|
30
30
|
workingCopy.model?.pushStackElement();
|
|
31
31
|
progress.report({
|
|
32
|
-
message: ( localize(
|
|
32
|
+
message: ( localize(20416, "Running Code Actions and Formatters..."))
|
|
33
33
|
});
|
|
34
34
|
let bubbleCancel = false;
|
|
35
35
|
await this.progressService.withProgress({
|
|
36
36
|
priority: NotificationPriority.URGENT,
|
|
37
37
|
location: ProgressLocation.Notification,
|
|
38
|
-
cancellable: ( localize(
|
|
38
|
+
cancellable: ( localize(20417, "Skip")),
|
|
39
39
|
delay: workingCopy.isDirty() ? 5000 : 3000
|
|
40
40
|
}, async progress => {
|
|
41
41
|
const participants = Array.from(this.saveParticipants).sort((a, b) => {
|