@codingame/monaco-vscode-api 23.0.4 → 23.1.1
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 +8 -8
- package/services.d.ts +1 -1
- package/services.js +3 -4
- package/vscode/src/vs/base/browser/dom.d.ts +6 -0
- package/vscode/src/vs/base/browser/dom.js +12 -3
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/policy/common/policy.js +27 -4
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +159 -159
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +50 -50
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/runSubagentTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +9 -9
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +0 -19
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +0 -95
|
@@ -80,8 +80,8 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
80
80
|
DefaultFormatter_1.extensionItemLabels.length = 0;
|
|
81
81
|
DefaultFormatter_1.extensionDescriptions.length = 0;
|
|
82
82
|
DefaultFormatter_1.extensionIds.push(null);
|
|
83
|
-
DefaultFormatter_1.extensionItemLabels.push(( localize(
|
|
84
|
-
DefaultFormatter_1.extensionDescriptions.push(( localize(
|
|
83
|
+
DefaultFormatter_1.extensionItemLabels.push(( localize(8113, 'None')));
|
|
84
|
+
DefaultFormatter_1.extensionDescriptions.push(( localize(8114, "None")));
|
|
85
85
|
for (const extension of extensions) {
|
|
86
86
|
if (extension.main || extension.browser) {
|
|
87
87
|
DefaultFormatter_1.extensionIds.push(extension.identifier.value);
|
|
@@ -108,13 +108,13 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
108
108
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
109
109
|
const detail = kind === FormattingKind.File
|
|
110
110
|
? ( localize(
|
|
111
|
-
|
|
111
|
+
8115,
|
|
112
112
|
"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",
|
|
113
113
|
extension.displayName || extension.name,
|
|
114
114
|
langName
|
|
115
115
|
))
|
|
116
116
|
: ( localize(
|
|
117
|
-
|
|
117
|
+
8116,
|
|
118
118
|
"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",
|
|
119
119
|
extension.displayName || extension.name,
|
|
120
120
|
langName
|
|
@@ -128,12 +128,12 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
128
128
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
129
129
|
const message = !defaultFormatterId
|
|
130
130
|
? ( localize(
|
|
131
|
-
|
|
131
|
+
8117,
|
|
132
132
|
"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",
|
|
133
133
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
134
134
|
))
|
|
135
135
|
: ( localize(
|
|
136
|
-
|
|
136
|
+
8118,
|
|
137
137
|
"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",
|
|
138
138
|
defaultFormatterId
|
|
139
139
|
));
|
|
@@ -146,16 +146,16 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
if (mode !== FormattingMode.Silent) {
|
|
148
148
|
const { confirmed } = await this._dialogService.confirm({
|
|
149
|
-
message: ( localize(
|
|
149
|
+
message: ( localize(8119, "Configure Default Formatter")),
|
|
150
150
|
detail: formatterOrMessage,
|
|
151
|
-
primaryButton: ( localize(
|
|
151
|
+
primaryButton: ( localize(8120, "&&Configure..."))
|
|
152
152
|
});
|
|
153
153
|
if (confirmed) {
|
|
154
154
|
return this._pickAndPersistDefaultFormatter(formatter, document);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
-
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(
|
|
158
|
+
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(8121, "Configure...")), run: () => this._pickAndPersistDefaultFormatter(formatter, document) }], { priority: NotificationPriority.SILENT });
|
|
159
159
|
}
|
|
160
160
|
return undefined;
|
|
161
161
|
}
|
|
@@ -169,7 +169,7 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
169
169
|
}));
|
|
170
170
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
171
171
|
const pick = await this._quickInputService.pick(picks, { placeHolder: ( localize(
|
|
172
|
-
|
|
172
|
+
8122,
|
|
173
173
|
"Select a default formatter for '{0}' files",
|
|
174
174
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
175
175
|
)) });
|
|
@@ -202,14 +202,14 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
202
202
|
if (typeof result !== 'string') {
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(
|
|
205
|
+
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(8123, "Configure...")) };
|
|
206
206
|
this._languageStatusStore.add(CommandsRegistry.registerCommand(command.id, () => this._pickAndPersistDefaultFormatter(formatter, document)));
|
|
207
207
|
this._languageStatusStore.add(this._languageStatusService.addStatus({
|
|
208
208
|
id: 'formatter.conflict',
|
|
209
|
-
name: ( localize(
|
|
209
|
+
name: ( localize(8124, "Formatter Conflicts")),
|
|
210
210
|
selector: { language: document.getLanguageId(), pattern: document.uri.fsPath },
|
|
211
211
|
severity: Severity$1.Error,
|
|
212
|
-
label: ( localize(
|
|
212
|
+
label: ( localize(8125, "Formatting")),
|
|
213
213
|
detail: result,
|
|
214
214
|
busy: false,
|
|
215
215
|
source: '',
|
|
@@ -237,7 +237,7 @@ DefaultFormatter = DefaultFormatter_1 = ( __decorate([
|
|
|
237
237
|
properties: {
|
|
238
238
|
[DefaultFormatter.configName]: {
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
8126,
|
|
241
241
|
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
242
242
|
)),
|
|
243
243
|
type: ['string', 'null'],
|
|
@@ -260,7 +260,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
260
260
|
const pick = {
|
|
261
261
|
index,
|
|
262
262
|
label: provider.displayName || '',
|
|
263
|
-
description: isDefault ? ( localize(
|
|
263
|
+
description: isDefault ? ( localize(8127, "(default)")) : undefined,
|
|
264
264
|
};
|
|
265
265
|
if (isDefault) {
|
|
266
266
|
defaultFormatterPick = pick;
|
|
@@ -268,10 +268,10 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
268
268
|
return pick;
|
|
269
269
|
}));
|
|
270
270
|
const configurePick = {
|
|
271
|
-
label: ( localize(
|
|
271
|
+
label: ( localize(8128, "Configure Default Formatter..."))
|
|
272
272
|
};
|
|
273
273
|
const pick = await quickPickService.pick([...picks, { type: 'separator' }, configurePick], {
|
|
274
|
-
placeHolder: ( localize(
|
|
274
|
+
placeHolder: ( localize(8129, "Select a formatter")),
|
|
275
275
|
activeItem: defaultFormatterPick
|
|
276
276
|
});
|
|
277
277
|
if (!pick) {
|
|
@@ -280,7 +280,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
280
280
|
else if (pick === configurePick) {
|
|
281
281
|
const langName = languageService.getLanguageName(model.getLanguageId()) || model.getLanguageId();
|
|
282
282
|
const pick = await quickPickService.pick(picks, { placeHolder: ( localize(
|
|
283
|
-
|
|
283
|
+
8122,
|
|
284
284
|
"Select a default formatter for '{0}' files",
|
|
285
285
|
DefaultFormatter._maybeQuotes(langName)
|
|
286
286
|
)) });
|
|
@@ -297,7 +297,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: 'editor.action.formatDocument.multiple',
|
|
300
|
-
label: ( localize(
|
|
300
|
+
label: ( localize(8130, "Format Document With...")),
|
|
301
301
|
alias: 'Format Document...',
|
|
302
302
|
precondition: ( ContextKeyExpr.and(
|
|
303
303
|
EditorContextKeys.writable,
|
|
@@ -327,7 +327,7 @@ registerEditorAction(class FormatSelectionMultipleAction extends EditorAction {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: 'editor.action.formatSelection.multiple',
|
|
330
|
-
label: ( localize(
|
|
330
|
+
label: ( localize(8131, "Format Selection With...")),
|
|
331
331
|
alias: 'Format Code...',
|
|
332
332
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(EditorContextKeys.writable)), EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider)),
|
|
333
333
|
contextMenuOpts: {
|
|
@@ -15,7 +15,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: 'editor.action.formatDocument.none',
|
|
18
|
-
label: ( localize2(
|
|
18
|
+
label: ( localize2(8132, "Format Document")),
|
|
19
19
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, ( EditorContextKeys.hasDocumentFormattingProvider.toNegated()))),
|
|
20
20
|
kbOpts: {
|
|
21
21
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -43,14 +43,14 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
43
43
|
return commandService.executeCommand('editor.action.formatDocument');
|
|
44
44
|
}
|
|
45
45
|
else if (model.isTooLargeForSyncing()) {
|
|
46
|
-
notificationService.warn(( localize(
|
|
46
|
+
notificationService.warn(( localize(8133, "This file cannot be formatted because it is too large")));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
const langName = model.getLanguageId();
|
|
50
|
-
const message = ( localize(
|
|
50
|
+
const message = ( localize(8134, "There is no formatter for '{0}' files installed.", langName));
|
|
51
51
|
const { confirmed } = await dialogService.confirm({
|
|
52
52
|
message,
|
|
53
|
-
primaryButton: ( localize(
|
|
53
|
+
primaryButton: ( localize(8135, "&&Install Formatter..."))
|
|
54
54
|
});
|
|
55
55
|
if (confirmed) {
|
|
56
56
|
extensionsWorkbenchService.openSearch(`category:formatters ${langName}`);
|
|
@@ -19,7 +19,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: 'editor.action.formatChanges',
|
|
22
|
-
label: ( localize2(
|
|
22
|
+
label: ( localize2(8136, "Format Modified Lines")),
|
|
23
23
|
precondition: ( ContextKeyExpr.and(
|
|
24
24
|
EditorContextKeys.writable,
|
|
25
25
|
EditorContextKeys.hasDocumentSelectionFormattingProvider
|
|
@@ -24,7 +24,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
24
24
|
static { this.IsReading = ( new RawContextKey(
|
|
25
25
|
'isReadingLineWithInlayHints',
|
|
26
26
|
false,
|
|
27
|
-
{ type: 'boolean', description: ( localize(
|
|
27
|
+
{ type: 'boolean', description: ( localize(8137, "Whether the current line and its inlay hints are currently focused")) }
|
|
28
28
|
)); }
|
|
29
29
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
30
30
|
static get(editor) {
|
|
@@ -39,7 +39,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
39
39
|
this._ariaElement.style.position = 'fixed';
|
|
40
40
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
41
41
|
this._ariaElement.tabIndex = 0;
|
|
42
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
42
|
+
this._ariaElement.setAttribute('aria-description', ( localize(8138, "Code with Inlay Hint Information")));
|
|
43
43
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
44
44
|
}
|
|
45
45
|
dispose() {
|
|
@@ -139,7 +139,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'inlayHints.startReadingLineWithHint',
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(8139, "Read Line with Inlay Hints")),
|
|
143
143
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
144
144
|
f1: true
|
|
145
145
|
});
|
|
@@ -153,7 +153,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
153
153
|
constructor() {
|
|
154
154
|
super({
|
|
155
155
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
156
|
-
title: ( localize2(
|
|
156
|
+
title: ( localize2(8140, "Stop Inlay Hints Reading")),
|
|
157
157
|
precondition: InlayHintsAccessibility.IsReading,
|
|
158
158
|
f1: true,
|
|
159
159
|
keybinding: {
|
|
@@ -11,8 +11,8 @@ class ListResizeColumnAction extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'list.resizeColumn',
|
|
14
|
-
title: { value: ( localize(
|
|
15
|
-
category: { value: ( localize(
|
|
14
|
+
title: { value: ( localize(8373, "Resize Column")), original: 'Resize Column' },
|
|
15
|
+
category: { value: ( localize(8374, "List")), original: 'List' },
|
|
16
16
|
precondition: WorkbenchListFocusContextKey,
|
|
17
17
|
f1: true
|
|
18
18
|
});
|
|
@@ -17,14 +17,14 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
17
17
|
items.push({ label, index });
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(
|
|
20
|
+
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(8375, "Select the column to resize, type to filter.")) });
|
|
21
21
|
if (!column) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
const value = await this._quickInputService.input({
|
|
25
|
-
placeHolder: ( localize(
|
|
25
|
+
placeHolder: ( localize(8376, "i.e. 20, 60, 100...")),
|
|
26
26
|
prompt: ( localize(
|
|
27
|
-
|
|
27
|
+
8377,
|
|
28
28
|
"Please enter a width in percentage for the '{0}' column.",
|
|
29
29
|
column.label
|
|
30
30
|
)),
|
|
@@ -39,11 +39,11 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
39
39
|
async _validateColumnResizeValue(input) {
|
|
40
40
|
const percentage = Number.parseInt(input);
|
|
41
41
|
if (input && !Number.isInteger(percentage)) {
|
|
42
|
-
return localize(
|
|
42
|
+
return localize(8378, "Please enter an integer.");
|
|
43
43
|
}
|
|
44
44
|
else if (percentage < 0 || percentage > 100) {
|
|
45
45
|
return localize(
|
|
46
|
-
|
|
46
|
+
8379,
|
|
47
47
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
48
48
|
);
|
|
49
49
|
}
|
|
@@ -169,13 +169,13 @@ var McpConnectionState;
|
|
|
169
169
|
McpConnectionState.toString = (s) => {
|
|
170
170
|
switch (s.state) {
|
|
171
171
|
case Kind.Stopped:
|
|
172
|
-
return localize(
|
|
172
|
+
return localize(8907, 'Stopped');
|
|
173
173
|
case Kind.Starting:
|
|
174
|
-
return localize(
|
|
174
|
+
return localize(8908, 'Starting');
|
|
175
175
|
case Kind.Running:
|
|
176
|
-
return localize(
|
|
176
|
+
return localize(8909, 'Running');
|
|
177
177
|
case Kind.Error:
|
|
178
|
-
return localize(
|
|
178
|
+
return localize(8910, 'Error {0}', s.message);
|
|
179
179
|
default:
|
|
180
180
|
assertNever();
|
|
181
181
|
}
|
|
@@ -23,7 +23,7 @@ import { ICellExecutionError } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9
|
|
|
23
23
|
import { INotebookTextModelLike } from "./notebookKernelService.js";
|
|
24
24
|
import { ICellRange } from "@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
25
25
|
import { RegisteredEditorPriority } from "../../../services/editor/common/editorResolverService.js";
|
|
26
|
-
import { IWorkingCopyBackupMeta, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-
|
|
26
|
+
import { IWorkingCopyBackupMeta, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
27
27
|
import { SnapshotContext } from "@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
|
|
28
28
|
export declare const NOTEBOOK_EDITOR_ID = "workbench.editor.notebook";
|
|
29
29
|
export declare const NOTEBOOK_DIFF_EDITOR_ID = "workbench.editor.notebookTextDiffEditor";
|
|
@@ -27,7 +27,7 @@ class SnippetCompletion {
|
|
|
27
27
|
constructor(snippet, range) {
|
|
28
28
|
this.snippet = snippet;
|
|
29
29
|
this.label = { label: snippet.prefix, description: snippet.name };
|
|
30
|
-
this.detail = ( localize(
|
|
30
|
+
this.detail = ( localize(10830, "{0} ({1})", snippet.description || snippet.name, snippet.source));
|
|
31
31
|
this.insertText = snippet.codeSnippet;
|
|
32
32
|
this.extensionId = snippet.extensionId;
|
|
33
33
|
this.range = range;
|
|
@@ -121,14 +121,14 @@ let SnippetCompletionProvider = class SnippetCompletionProvider {
|
|
|
121
121
|
let to = i + 1;
|
|
122
122
|
for (; to < suggestions.length && item.label === suggestions[to].label; to++) {
|
|
123
123
|
suggestions[to].label.label = ( localize(
|
|
124
|
-
|
|
124
|
+
10831,
|
|
125
125
|
"{0}, {1}",
|
|
126
126
|
suggestions[to].label.label,
|
|
127
127
|
suggestions[to].snippet.name
|
|
128
128
|
));
|
|
129
129
|
}
|
|
130
130
|
if (to > i + 1) {
|
|
131
|
-
suggestions[i].label.label = ( localize(
|
|
131
|
+
suggestions[i].label.label = ( localize(10831, "{0}, {1}", suggestions[i].label.label, suggestions[i].snippet.name));
|
|
132
132
|
i = to;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -207,14 +207,14 @@ class SnippetFile {
|
|
|
207
207
|
source = this._extension.displayName || this._extension.name;
|
|
208
208
|
}
|
|
209
209
|
else if (this.source === SnippetSource.Workspace) {
|
|
210
|
-
source = ( localize(
|
|
210
|
+
source = ( localize(10847, "Workspace Snippet"));
|
|
211
211
|
}
|
|
212
212
|
else {
|
|
213
213
|
if (this.isGlobalSnippets) {
|
|
214
|
-
source = ( localize(
|
|
214
|
+
source = ( localize(10848, "Global User Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
|
-
source = ( localize(
|
|
217
|
+
source = ( localize(10849, "User Snippet"));
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
for (const _prefix of Iterable.wrap(prefix)) {
|
|
@@ -34,7 +34,7 @@ var snippetExt;
|
|
|
34
34
|
function toValidSnippet(extension, snippet, languageService) {
|
|
35
35
|
if (isFalsyOrWhitespace(snippet.path)) {
|
|
36
36
|
extension.collector.error(( localize(
|
|
37
|
-
|
|
37
|
+
10850,
|
|
38
38
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
39
39
|
extension.description.name,
|
|
40
40
|
String(snippet.path)
|
|
@@ -43,7 +43,7 @@ var snippetExt;
|
|
|
43
43
|
}
|
|
44
44
|
if (isFalsyOrWhitespace(snippet.language) && !snippet.path.endsWith('.code-snippets')) {
|
|
45
45
|
extension.collector.error(( localize(
|
|
46
|
-
|
|
46
|
+
10851,
|
|
47
47
|
"When omitting the language, the value of `contributes.{0}.path` must be a `.code-snippets`-file. Provided value: {1}",
|
|
48
48
|
extension.description.name,
|
|
49
49
|
String(snippet.path)
|
|
@@ -52,7 +52,7 @@ var snippetExt;
|
|
|
52
52
|
}
|
|
53
53
|
if (!isFalsyOrWhitespace(snippet.language) && !languageService.isRegisteredLanguageId(snippet.language)) {
|
|
54
54
|
extension.collector.error(( localize(
|
|
55
|
-
|
|
55
|
+
10852,
|
|
56
56
|
"Unknown language in `contributes.{0}.language`. Provided value: {1}",
|
|
57
57
|
extension.description.name,
|
|
58
58
|
String(snippet.language)
|
|
@@ -63,7 +63,7 @@ var snippetExt;
|
|
|
63
63
|
const snippetLocation = joinPath(extensionLocation, snippet.path);
|
|
64
64
|
if (!isEqualOrParent(snippetLocation, extensionLocation)) {
|
|
65
65
|
extension.collector.error(( localize(
|
|
66
|
-
|
|
66
|
+
10853,
|
|
67
67
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
68
68
|
extension.description.name,
|
|
69
69
|
snippetLocation.path,
|
|
@@ -78,7 +78,7 @@ var snippetExt;
|
|
|
78
78
|
}
|
|
79
79
|
snippetExt.toValidSnippet = toValidSnippet;
|
|
80
80
|
snippetExt.snippetsContribution = {
|
|
81
|
-
description: ( localize(
|
|
81
|
+
description: ( localize(10854, 'Contributes snippets.')),
|
|
82
82
|
type: 'array',
|
|
83
83
|
defaultSnippets: [{ body: [{ language: '', path: '' }] }],
|
|
84
84
|
items: {
|
|
@@ -86,12 +86,12 @@ var snippetExt;
|
|
|
86
86
|
defaultSnippets: [{ body: { language: '${1:id}', path: './snippets/${2:id}.json.' } }],
|
|
87
87
|
properties: {
|
|
88
88
|
language: {
|
|
89
|
-
description: ( localize(
|
|
89
|
+
description: ( localize(10855, 'Language identifier for which this snippet is contributed to.')),
|
|
90
90
|
type: 'string'
|
|
91
91
|
},
|
|
92
92
|
path: {
|
|
93
93
|
description: ( localize(
|
|
94
|
-
|
|
94
|
+
10856,
|
|
95
95
|
'Path of the snippets file. The path is relative to the extension folder and typically starts with \'./snippets/\'.'
|
|
96
96
|
)),
|
|
97
97
|
type: 'string'
|
|
@@ -336,14 +336,14 @@ let SnippetsService = class SnippetsService {
|
|
|
336
336
|
file.load().then(file => {
|
|
337
337
|
if (( file.data.some(snippet => snippet.isBogous))) {
|
|
338
338
|
extension.collector.warn(( localize(
|
|
339
|
-
|
|
339
|
+
10857,
|
|
340
340
|
"One or more snippets from the extension '{0}' very likely confuse snippet-variables and snippet-placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details)",
|
|
341
341
|
extension.description.name
|
|
342
342
|
)));
|
|
343
343
|
}
|
|
344
344
|
}, err => {
|
|
345
345
|
extension.collector.warn(( localize(
|
|
346
|
-
|
|
346
|
+
10858,
|
|
347
347
|
"The snippet file \"{0}\" could not be read.",
|
|
348
348
|
(file.location.toString())
|
|
349
349
|
)));
|
|
@@ -3,16 +3,16 @@ import { localize } from '../../../../nls.js';
|
|
|
3
3
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
4
4
|
import { language } from '../../../../base/common/platform.js';
|
|
5
5
|
|
|
6
|
-
const HasSpeechProvider = ( new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(
|
|
6
|
+
const HasSpeechProvider = ( new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(10862, "A speech provider is registered to the speech service.")) }));
|
|
7
7
|
const SpeechToTextInProgress = ( new RawContextKey(
|
|
8
8
|
'speechToTextInProgress',
|
|
9
9
|
false,
|
|
10
|
-
{ type: 'boolean', description: ( localize(
|
|
10
|
+
{ type: 'boolean', description: ( localize(10863, "A speech-to-text session is in progress.")) }
|
|
11
11
|
));
|
|
12
12
|
const TextToSpeechInProgress = ( new RawContextKey(
|
|
13
13
|
'textToSpeechInProgress',
|
|
14
14
|
false,
|
|
15
|
-
{ type: 'boolean', description: ( localize(
|
|
15
|
+
{ type: 'boolean', description: ( localize(10864, "A text-to-speech session is in progress.")) }
|
|
16
16
|
));
|
|
17
17
|
var SpeechToTextStatus;
|
|
18
18
|
(function (SpeechToTextStatus) {
|
|
@@ -44,82 +44,82 @@ var AccessibilityVoiceSettingId;
|
|
|
44
44
|
const SPEECH_LANGUAGE_CONFIG = AccessibilityVoiceSettingId.SpeechLanguage;
|
|
45
45
|
const SPEECH_LANGUAGES = {
|
|
46
46
|
['da-DK']: {
|
|
47
|
-
name: ( localize(
|
|
47
|
+
name: ( localize(10865, "Danish (Denmark)"))
|
|
48
48
|
},
|
|
49
49
|
['de-DE']: {
|
|
50
|
-
name: ( localize(
|
|
50
|
+
name: ( localize(10866, "German (Germany)"))
|
|
51
51
|
},
|
|
52
52
|
['en-AU']: {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(10867, "English (Australia)"))
|
|
54
54
|
},
|
|
55
55
|
['en-CA']: {
|
|
56
|
-
name: ( localize(
|
|
56
|
+
name: ( localize(10868, "English (Canada)"))
|
|
57
57
|
},
|
|
58
58
|
['en-GB']: {
|
|
59
|
-
name: ( localize(
|
|
59
|
+
name: ( localize(10869, "English (United Kingdom)"))
|
|
60
60
|
},
|
|
61
61
|
['en-IE']: {
|
|
62
|
-
name: ( localize(
|
|
62
|
+
name: ( localize(10870, "English (Ireland)"))
|
|
63
63
|
},
|
|
64
64
|
['en-IN']: {
|
|
65
|
-
name: ( localize(
|
|
65
|
+
name: ( localize(10871, "English (India)"))
|
|
66
66
|
},
|
|
67
67
|
['en-NZ']: {
|
|
68
|
-
name: ( localize(
|
|
68
|
+
name: ( localize(10872, "English (New Zealand)"))
|
|
69
69
|
},
|
|
70
70
|
['en-US']: {
|
|
71
|
-
name: ( localize(
|
|
71
|
+
name: ( localize(10873, "English (United States)"))
|
|
72
72
|
},
|
|
73
73
|
['es-ES']: {
|
|
74
|
-
name: ( localize(
|
|
74
|
+
name: ( localize(10874, "Spanish (Spain)"))
|
|
75
75
|
},
|
|
76
76
|
['es-MX']: {
|
|
77
|
-
name: ( localize(
|
|
77
|
+
name: ( localize(10875, "Spanish (Mexico)"))
|
|
78
78
|
},
|
|
79
79
|
['fr-CA']: {
|
|
80
|
-
name: ( localize(
|
|
80
|
+
name: ( localize(10876, "French (Canada)"))
|
|
81
81
|
},
|
|
82
82
|
['fr-FR']: {
|
|
83
|
-
name: ( localize(
|
|
83
|
+
name: ( localize(10877, "French (France)"))
|
|
84
84
|
},
|
|
85
85
|
['hi-IN']: {
|
|
86
|
-
name: ( localize(
|
|
86
|
+
name: ( localize(10878, "Hindi (India)"))
|
|
87
87
|
},
|
|
88
88
|
['it-IT']: {
|
|
89
|
-
name: ( localize(
|
|
89
|
+
name: ( localize(10879, "Italian (Italy)"))
|
|
90
90
|
},
|
|
91
91
|
['ja-JP']: {
|
|
92
|
-
name: ( localize(
|
|
92
|
+
name: ( localize(10880, "Japanese (Japan)"))
|
|
93
93
|
},
|
|
94
94
|
['ko-KR']: {
|
|
95
|
-
name: ( localize(
|
|
95
|
+
name: ( localize(10881, "Korean (South Korea)"))
|
|
96
96
|
},
|
|
97
97
|
['nl-NL']: {
|
|
98
|
-
name: ( localize(
|
|
98
|
+
name: ( localize(10882, "Dutch (Netherlands)"))
|
|
99
99
|
},
|
|
100
100
|
['pt-PT']: {
|
|
101
|
-
name: ( localize(
|
|
101
|
+
name: ( localize(10883, "Portuguese (Portugal)"))
|
|
102
102
|
},
|
|
103
103
|
['pt-BR']: {
|
|
104
|
-
name: ( localize(
|
|
104
|
+
name: ( localize(10884, "Portuguese (Brazil)"))
|
|
105
105
|
},
|
|
106
106
|
['ru-RU']: {
|
|
107
|
-
name: ( localize(
|
|
107
|
+
name: ( localize(10885, "Russian (Russia)"))
|
|
108
108
|
},
|
|
109
109
|
['sv-SE']: {
|
|
110
|
-
name: ( localize(
|
|
110
|
+
name: ( localize(10886, "Swedish (Sweden)"))
|
|
111
111
|
},
|
|
112
112
|
['tr-TR']: {
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(10887, "Turkish (Türkiye)"))
|
|
114
114
|
},
|
|
115
115
|
['zh-CN']: {
|
|
116
|
-
name: ( localize(
|
|
116
|
+
name: ( localize(10888, "Chinese (Simplified, China)"))
|
|
117
117
|
},
|
|
118
118
|
['zh-HK']: {
|
|
119
|
-
name: ( localize(
|
|
119
|
+
name: ( localize(10889, "Chinese (Traditional, Hong Kong)"))
|
|
120
120
|
},
|
|
121
121
|
['zh-TW']: {
|
|
122
|
-
name: ( localize(
|
|
122
|
+
name: ( localize(10890, "Chinese (Traditional, Taiwan)"))
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
function speechLanguageConfigToLanguage(config, lang = language) {
|
|
@@ -3,7 +3,7 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
3
3
|
import { localize } from '../../../../nls.js';
|
|
4
4
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
5
5
|
|
|
6
|
-
const rerunTaskIcon = registerIcon('rerun-task', Codicon.refresh, ( localize(
|
|
6
|
+
const rerunTaskIcon = registerIcon('rerun-task', Codicon.refresh, ( localize(11099, 'View icon of the rerun task.')));
|
|
7
7
|
const RerunForActiveTerminalCommandId = 'workbench.action.tasks.rerunForActiveTerminal';
|
|
8
8
|
const RerunAllRunningTasksCommandId = 'workbench.action.tasks.rerunAllRunningTasks';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ const taskDefinitionSchema = {
|
|
|
13
13
|
type: {
|
|
14
14
|
type: 'string',
|
|
15
15
|
description: ( localize(
|
|
16
|
-
|
|
16
|
+
11307,
|
|
17
17
|
'The actual task type. Please note that types starting with a \'$\' are reserved for internal usage.'
|
|
18
18
|
))
|
|
19
19
|
},
|
|
@@ -25,7 +25,7 @@ const taskDefinitionSchema = {
|
|
|
25
25
|
},
|
|
26
26
|
properties: {
|
|
27
27
|
type: 'object',
|
|
28
|
-
description: ( localize(
|
|
28
|
+
description: ( localize(11308, 'Additional properties of the task type')),
|
|
29
29
|
additionalProperties: {
|
|
30
30
|
$ref: 'http://json-schema.org/draft-07/schema#'
|
|
31
31
|
}
|
|
@@ -33,7 +33,7 @@ const taskDefinitionSchema = {
|
|
|
33
33
|
when: {
|
|
34
34
|
type: 'string',
|
|
35
35
|
markdownDescription: ( localize(
|
|
36
|
-
|
|
36
|
+
11309,
|
|
37
37
|
'Condition which must be true to enable this type of task. Consider using `shellExecutionSupported`, `processExecutionSupported`, and `customExecutionSupported` as appropriate for this task definition. See the [API documentation](https://code.visualstudio.com/api/extension-guides/task-provider#when-clause) for more information.'
|
|
38
38
|
)),
|
|
39
39
|
default: ''
|
|
@@ -49,7 +49,7 @@ var Configuration;
|
|
|
49
49
|
const taskType = isString(value.type) ? value.type : undefined;
|
|
50
50
|
if (!taskType || taskType.length === 0) {
|
|
51
51
|
messageCollector.error(( localize(
|
|
52
|
-
|
|
52
|
+
11310,
|
|
53
53
|
'The task type configuration is missing the required \'taskType\' property'
|
|
54
54
|
)));
|
|
55
55
|
return undefined;
|
|
@@ -81,7 +81,7 @@ const taskDefinitionsExtPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
jsonSchema: {
|
|
84
|
-
description: ( localize(
|
|
84
|
+
description: ( localize(11311, 'Contributes task kinds')),
|
|
85
85
|
type: 'array',
|
|
86
86
|
items: taskDefinitionSchema
|
|
87
87
|
}
|
|
@@ -9,9 +9,9 @@ import { ConfigurationTarget } from '../../../../platform/configuration/common/c
|
|
|
9
9
|
export { RerunAllRunningTasksCommandId, RerunForActiveTerminalCommandId, rerunTaskIcon } from './constants.js';
|
|
10
10
|
|
|
11
11
|
const USER_TASKS_GROUP_KEY = 'settings';
|
|
12
|
-
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(
|
|
13
|
-
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(
|
|
14
|
-
const TASKS_CATEGORY = ( localize2(
|
|
12
|
+
const TASK_RUNNING_STATE = ( new RawContextKey('taskRunning', false, ( localize(11322, "Whether a task is currently running."))));
|
|
13
|
+
const TASK_TERMINAL_ACTIVE = ( new RawContextKey('taskTerminalActive', false, ( localize(11323, "Whether the active terminal is a task terminal."))));
|
|
14
|
+
const TASKS_CATEGORY = ( localize2(11324, "Tasks"));
|
|
15
15
|
var ShellQuoting;
|
|
16
16
|
(function (ShellQuoting) {
|
|
17
17
|
ShellQuoting[ShellQuoting["Escape"] = 1] = "Escape";
|
|
@@ -794,7 +794,7 @@ var TaskDefinition;
|
|
|
794
794
|
break;
|
|
795
795
|
default:
|
|
796
796
|
reporter.error(( localize(
|
|
797
|
-
|
|
797
|
+
11325,
|
|
798
798
|
'Error: the task identifier \'{0}\' is missing the required property \'{1}\'. The task identifier will be ignored.',
|
|
799
799
|
JSON.stringify(external, undefined, 0),
|
|
800
800
|
property
|