@codingame/monaco-vscode-api 11.0.1 → 11.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/api.js +1 -1
- package/extensions.d.ts +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- 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/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- 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/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- 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/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -235,12 +235,12 @@ let TabFocusMode = class TabFocusMode extends Disposable {
|
|
|
235
235
|
TabFocusMode = ( (__decorate([
|
|
236
236
|
( (__param(0, IConfigurationService)))
|
|
237
237
|
], TabFocusMode)));
|
|
238
|
-
const nlsSingleSelectionRange = ( localize(
|
|
239
|
-
const nlsSingleSelection = ( localize(
|
|
240
|
-
const nlsMultiSelectionRange = ( localize(
|
|
241
|
-
const nlsMultiSelection = ( localize(
|
|
242
|
-
const nlsEOLLF = ( localize(
|
|
243
|
-
const nlsEOLCRLF = ( localize(
|
|
238
|
+
const nlsSingleSelectionRange = ( localize(9729, "Ln {0}, Col {1} ({2} selected)"));
|
|
239
|
+
const nlsSingleSelection = ( localize(9730, "Ln {0}, Col {1}"));
|
|
240
|
+
const nlsMultiSelectionRange = ( localize(9731, "{0} selections ({1} characters selected)"));
|
|
241
|
+
const nlsMultiSelection = ( localize(9732, "{0} selections"));
|
|
242
|
+
const nlsEOLLF = ( localize(9733, "LF"));
|
|
243
|
+
const nlsEOLCRLF = ( localize(9734, "CRLF"));
|
|
244
244
|
let EditorStatus = class EditorStatus extends Disposable {
|
|
245
245
|
constructor(targetWindowId, editorService, quickInputService, languageService, textFileService, statusbarService, instantiationService, configurationService) {
|
|
246
246
|
super();
|
|
@@ -288,10 +288,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
288
288
|
async showIndentationPicker() {
|
|
289
289
|
const activeTextEditorControl = getCodeEditor(this.editorService.activeTextEditorControl);
|
|
290
290
|
if (!activeTextEditorControl) {
|
|
291
|
-
return this.quickInputService.pick([{ label: ( localize(
|
|
291
|
+
return this.quickInputService.pick([{ label: ( localize(9735, "No text editor active at this time")) }]);
|
|
292
292
|
}
|
|
293
293
|
if (this.editorService.activeEditor?.isReadonly()) {
|
|
294
|
-
return this.quickInputService.pick([{ label: ( localize(
|
|
294
|
+
return this.quickInputService.pick([{ label: ( localize(9736, "The active code editor is read-only.")) }]);
|
|
295
295
|
}
|
|
296
296
|
const picks = ( ([
|
|
297
297
|
assertIsDefined(activeTextEditorControl.getAction(IndentUsingSpaces.ID)),
|
|
@@ -312,20 +312,20 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
})));
|
|
315
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
316
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
317
|
-
const action = await this.quickInputService.pick(picks, { placeHolder: ( localize(
|
|
315
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(9737, "convert file")) });
|
|
316
|
+
picks.unshift({ type: 'separator', label: ( localize(9738, "change view")) });
|
|
317
|
+
const action = await this.quickInputService.pick(picks, { placeHolder: ( localize(9739, "Select Action")), matchOnDetail: true });
|
|
318
318
|
return action?.run();
|
|
319
319
|
}
|
|
320
320
|
updateTabFocusModeElement(visible) {
|
|
321
321
|
if (visible) {
|
|
322
322
|
if (!this.tabFocusModeElement.value) {
|
|
323
|
-
const text = ( localize(
|
|
323
|
+
const text = ( localize(9740, "Tab Moves Focus"));
|
|
324
324
|
this.tabFocusModeElement.value = this.statusbarService.addEntry({
|
|
325
|
-
name: ( localize(
|
|
325
|
+
name: ( localize(9741, "Accessibility Mode")),
|
|
326
326
|
text,
|
|
327
327
|
ariaLabel: text,
|
|
328
|
-
tooltip: ( localize(
|
|
328
|
+
tooltip: ( localize(9742, "Disable Accessibility Mode")),
|
|
329
329
|
command: 'editor.action.toggleTabFocusMode',
|
|
330
330
|
kind: 'prominent'
|
|
331
331
|
}, 'status.editor.tabFocusMode', 1 , 100.7);
|
|
@@ -338,12 +338,12 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
338
338
|
updateColumnSelectionModeElement(visible) {
|
|
339
339
|
if (visible) {
|
|
340
340
|
if (!this.columnSelectionModeElement.value) {
|
|
341
|
-
const text = ( localize(
|
|
341
|
+
const text = ( localize(9743, "Column Selection"));
|
|
342
342
|
this.columnSelectionModeElement.value = this.statusbarService.addEntry({
|
|
343
|
-
name: ( localize(
|
|
343
|
+
name: ( localize(9744, "Column Selection Mode")),
|
|
344
344
|
text,
|
|
345
345
|
ariaLabel: text,
|
|
346
|
-
tooltip: ( localize(
|
|
346
|
+
tooltip: ( localize(9745, "Disable Column Selection Mode")),
|
|
347
347
|
command: 'editor.action.toggleColumnSelection',
|
|
348
348
|
kind: 'prominent'
|
|
349
349
|
}, 'status.editor.columnSelectionMode', 1 , 100.8);
|
|
@@ -364,10 +364,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
364
364
|
return;
|
|
365
365
|
}
|
|
366
366
|
const props = {
|
|
367
|
-
name: ( localize(
|
|
367
|
+
name: ( localize(9746, "Editor Selection")),
|
|
368
368
|
text,
|
|
369
369
|
ariaLabel: text,
|
|
370
|
-
tooltip: ( localize(
|
|
370
|
+
tooltip: ( localize(9747, "Go to Line/Column")),
|
|
371
371
|
command: 'workbench.action.gotoLine'
|
|
372
372
|
};
|
|
373
373
|
this.updateElement(this.selectionElement, props, 'status.editor.selection', 1 , 100.5);
|
|
@@ -383,10 +383,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
383
383
|
return;
|
|
384
384
|
}
|
|
385
385
|
const props = {
|
|
386
|
-
name: ( localize(
|
|
386
|
+
name: ( localize(9748, "Editor Indentation")),
|
|
387
387
|
text,
|
|
388
388
|
ariaLabel: text,
|
|
389
|
-
tooltip: ( localize(
|
|
389
|
+
tooltip: ( localize(9749, "Select Indentation")),
|
|
390
390
|
command: `changeEditorIndentation${this.targetWindowId}`
|
|
391
391
|
};
|
|
392
392
|
this.updateElement(this.indentationElement, props, 'status.editor.indentation', 1 , 100.4);
|
|
@@ -397,10 +397,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
const props = {
|
|
400
|
-
name: ( localize(
|
|
400
|
+
name: ( localize(9750, "Editor Encoding")),
|
|
401
401
|
text,
|
|
402
402
|
ariaLabel: text,
|
|
403
|
-
tooltip: ( localize(
|
|
403
|
+
tooltip: ( localize(9751, "Select Encoding")),
|
|
404
404
|
command: 'workbench.action.editor.changeEncoding'
|
|
405
405
|
};
|
|
406
406
|
this.updateElement(this.encodingElement, props, 'status.editor.encoding', 1 , 100.3);
|
|
@@ -411,10 +411,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
411
411
|
return;
|
|
412
412
|
}
|
|
413
413
|
const props = {
|
|
414
|
-
name: ( localize(
|
|
414
|
+
name: ( localize(9752, "Editor End of Line")),
|
|
415
415
|
text,
|
|
416
416
|
ariaLabel: text,
|
|
417
|
-
tooltip: ( localize(
|
|
417
|
+
tooltip: ( localize(9753, "Select End of Line Sequence")),
|
|
418
418
|
command: 'workbench.action.editor.changeEOL'
|
|
419
419
|
};
|
|
420
420
|
this.updateElement(this.eolElement, props, 'status.editor.eol', 1 , 100.2);
|
|
@@ -425,10 +425,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
425
425
|
return;
|
|
426
426
|
}
|
|
427
427
|
const props = {
|
|
428
|
-
name: ( localize(
|
|
428
|
+
name: ( localize(9754, "Editor Language")),
|
|
429
429
|
text,
|
|
430
430
|
ariaLabel: text,
|
|
431
|
-
tooltip: ( localize(
|
|
431
|
+
tooltip: ( localize(9755, "Select Language Mode")),
|
|
432
432
|
command: 'workbench.action.editor.changeLanguageMode'
|
|
433
433
|
};
|
|
434
434
|
this.updateElement(this.languageElement, props, 'status.editor.mode', 1 , 100.1);
|
|
@@ -439,10 +439,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
439
439
|
return;
|
|
440
440
|
}
|
|
441
441
|
const props = {
|
|
442
|
-
name: ( localize(
|
|
442
|
+
name: ( localize(9756, "File Information")),
|
|
443
443
|
text,
|
|
444
444
|
ariaLabel: text,
|
|
445
|
-
tooltip: ( localize(
|
|
445
|
+
tooltip: ( localize(9757, "File Information"))
|
|
446
446
|
};
|
|
447
447
|
this.updateElement(this.metadataElement, props, 'status.editor.info', 1 , 100);
|
|
448
448
|
}
|
|
@@ -596,14 +596,14 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
596
596
|
const modelOpts = model.getOptions();
|
|
597
597
|
update.indentation = (modelOpts.insertSpaces
|
|
598
598
|
? modelOpts.tabSize === modelOpts.indentSize
|
|
599
|
-
? ( localize(
|
|
599
|
+
? ( localize(9758, "Spaces: {0}", modelOpts.indentSize))
|
|
600
600
|
: ( localize(
|
|
601
|
-
|
|
601
|
+
9759,
|
|
602
602
|
"Spaces: {0} (Tab Size: {1})",
|
|
603
603
|
modelOpts.indentSize,
|
|
604
604
|
modelOpts.tabSize
|
|
605
605
|
))
|
|
606
|
-
: ( localize(
|
|
606
|
+
: ( localize(9760, "Tab Size: {0}", modelOpts.tabSize)));
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
this.updateState(update);
|
|
@@ -753,9 +753,9 @@ let ShowCurrentMarkerInStatusbarContribution = class ShowCurrentMarkerInStatusba
|
|
|
753
753
|
const line = splitLines(this.currentMarker.message)[0];
|
|
754
754
|
const text = `${this.getType(this.currentMarker)} ${line}`;
|
|
755
755
|
if (!this.statusBarEntryAccessor.value) {
|
|
756
|
-
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: ( localize(
|
|
756
|
+
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: ( localize(9761, "Current Problem")), text: '', ariaLabel: '' }, 'statusbar.currentProblem', 0 );
|
|
757
757
|
}
|
|
758
|
-
this.statusBarEntryAccessor.value.update({ name: ( localize(
|
|
758
|
+
this.statusBarEntryAccessor.value.update({ name: ( localize(9761, "Current Problem")), text, ariaLabel: text });
|
|
759
759
|
}
|
|
760
760
|
else {
|
|
761
761
|
this.statusBarEntryAccessor.clear();
|
|
@@ -849,7 +849,7 @@ let ShowLanguageExtensionsAction = class ShowLanguageExtensionsAction extends Ac
|
|
|
849
849
|
static { ShowLanguageExtensionsAction_1 = this; }
|
|
850
850
|
static { this.ID = 'workbench.action.showLanguageExtensions'; }
|
|
851
851
|
constructor(fileExtension, commandService, galleryService) {
|
|
852
|
-
super(ShowLanguageExtensionsAction_1.ID, ( localize(
|
|
852
|
+
super(ShowLanguageExtensionsAction_1.ID, ( localize(9762, "Search Marketplace Extensions for '{0}'...", fileExtension)));
|
|
853
853
|
this.fileExtension = fileExtension;
|
|
854
854
|
this.commandService = commandService;
|
|
855
855
|
this.enabled = galleryService.isEnabled();
|
|
@@ -867,7 +867,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
867
867
|
constructor() {
|
|
868
868
|
super({
|
|
869
869
|
id: ChangeLanguageAction.ID,
|
|
870
|
-
title: ( localize2(
|
|
870
|
+
title: ( localize2(9763, 'Change Language Mode')),
|
|
871
871
|
f1: true,
|
|
872
872
|
keybinding: {
|
|
873
873
|
weight: 200 ,
|
|
@@ -875,10 +875,10 @@ class ChangeLanguageAction extends Action2 {
|
|
|
875
875
|
},
|
|
876
876
|
precondition: ContextKeyExpr.not('notebookEditorFocused'),
|
|
877
877
|
metadata: {
|
|
878
|
-
description: ( localize(
|
|
878
|
+
description: ( localize(9764, "Change the language mode of the active text editor.")),
|
|
879
879
|
args: [
|
|
880
880
|
{
|
|
881
|
-
name: ( localize(
|
|
881
|
+
name: ( localize(9765, "The name of the language mode to change to.")),
|
|
882
882
|
constraint: (value) => typeof value === 'string',
|
|
883
883
|
}
|
|
884
884
|
]
|
|
@@ -897,7 +897,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
897
897
|
const telemetryService = accessor.get(ITelemetryService);
|
|
898
898
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
899
899
|
if (!activeTextEditorControl) {
|
|
900
|
-
await quickInputService.pick([{ label: ( localize(
|
|
900
|
+
await quickInputService.pick([{ label: ( localize(9735, "No text editor active at this time")) }]);
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
903
903
|
const textModel = activeTextEditorControl.getModel();
|
|
@@ -918,10 +918,10 @@ class ChangeLanguageAction extends Action2 {
|
|
|
918
918
|
const extensions = languageService.getExtensions(languageId).join(' ');
|
|
919
919
|
let description;
|
|
920
920
|
if (currentLanguageName === languageName) {
|
|
921
|
-
description = ( localize(
|
|
921
|
+
description = ( localize(9766, "({0}) - Configured Language", languageId));
|
|
922
922
|
}
|
|
923
923
|
else {
|
|
924
|
-
description = ( localize(
|
|
924
|
+
description = ( localize(9767, "({0})", languageId));
|
|
925
925
|
}
|
|
926
926
|
return {
|
|
927
927
|
label: languageName,
|
|
@@ -930,7 +930,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
930
930
|
description
|
|
931
931
|
};
|
|
932
932
|
})));
|
|
933
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
933
|
+
picks.unshift({ type: 'separator', label: ( localize(9768, "languages (identifier)")) });
|
|
934
934
|
let configureLanguageAssociations;
|
|
935
935
|
let configureLanguageSettings;
|
|
936
936
|
let galleryAction;
|
|
@@ -940,16 +940,16 @@ class ChangeLanguageAction extends Action2 {
|
|
|
940
940
|
if (galleryAction.enabled) {
|
|
941
941
|
picks.unshift(galleryAction);
|
|
942
942
|
}
|
|
943
|
-
configureLanguageSettings = { label: ( localize(
|
|
943
|
+
configureLanguageSettings = { label: ( localize(9769, "Configure '{0}' language based settings...", currentLanguageName)) };
|
|
944
944
|
picks.unshift(configureLanguageSettings);
|
|
945
|
-
configureLanguageAssociations = { label: ( localize(
|
|
945
|
+
configureLanguageAssociations = { label: ( localize(9770, "Configure File Association for '{0}'...", ext)) };
|
|
946
946
|
picks.unshift(configureLanguageAssociations);
|
|
947
947
|
}
|
|
948
948
|
const autoDetectLanguage = {
|
|
949
|
-
label: ( localize(
|
|
949
|
+
label: ( localize(9771, "Auto Detect"))
|
|
950
950
|
};
|
|
951
951
|
picks.unshift(autoDetectLanguage);
|
|
952
|
-
const pick = typeof languageMode === 'string' ? { label: languageMode } : await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
952
|
+
const pick = typeof languageMode === 'string' ? { label: languageMode } : await quickInputService.pick(picks, { placeHolder: ( localize(9772, "Select Language Mode")), matchOnDescription: true });
|
|
953
953
|
if (!pick) {
|
|
954
954
|
return;
|
|
955
955
|
}
|
|
@@ -1031,11 +1031,11 @@ class ChangeLanguageAction extends Action2 {
|
|
|
1031
1031
|
id: languageId,
|
|
1032
1032
|
label: languageName,
|
|
1033
1033
|
iconClasses: getIconClassesForLanguageId(languageId),
|
|
1034
|
-
description: (languageId === currentAssociation) ? ( localize(
|
|
1034
|
+
description: (languageId === currentAssociation) ? ( localize(9773, "Current Association")) : undefined
|
|
1035
1035
|
};
|
|
1036
1036
|
})));
|
|
1037
1037
|
setTimeout(async () => {
|
|
1038
|
-
const language = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
1038
|
+
const language = await quickInputService.pick(picks, { placeHolder: ( localize(9774, "Select Language Mode to Associate with '{0}'", extension || base)) });
|
|
1039
1039
|
if (language) {
|
|
1040
1040
|
const fileAssociationsConfig = configurationService.inspect(FILES_ASSOCIATIONS_CONFIG);
|
|
1041
1041
|
let associationKey;
|
|
@@ -1060,7 +1060,7 @@ class ChangeEOLAction extends Action2 {
|
|
|
1060
1060
|
constructor() {
|
|
1061
1061
|
super({
|
|
1062
1062
|
id: 'workbench.action.editor.changeEOL',
|
|
1063
|
-
title: ( localize2(
|
|
1063
|
+
title: ( localize2(9775, 'Change End of Line Sequence')),
|
|
1064
1064
|
f1: true
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
@@ -1069,11 +1069,11 @@ class ChangeEOLAction extends Action2 {
|
|
|
1069
1069
|
const quickInputService = accessor.get(IQuickInputService);
|
|
1070
1070
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1071
1071
|
if (!activeTextEditorControl) {
|
|
1072
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1072
|
+
await quickInputService.pick([{ label: ( localize(9735, "No text editor active at this time")) }]);
|
|
1073
1073
|
return;
|
|
1074
1074
|
}
|
|
1075
1075
|
if (editorService.activeEditor?.isReadonly()) {
|
|
1076
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1076
|
+
await quickInputService.pick([{ label: ( localize(9736, "The active code editor is read-only.")) }]);
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
let textModel = activeTextEditorControl.getModel();
|
|
@@ -1082,7 +1082,7 @@ class ChangeEOLAction extends Action2 {
|
|
|
1082
1082
|
{ label: nlsEOLCRLF, eol: 1 },
|
|
1083
1083
|
];
|
|
1084
1084
|
const selectedIndex = (textModel?.getEOL() === '\n') ? 0 : 1;
|
|
1085
|
-
const eol = await quickInputService.pick(EOLOptions, { placeHolder: ( localize(
|
|
1085
|
+
const eol = await quickInputService.pick(EOLOptions, { placeHolder: ( localize(9776, "Select End of Line Sequence")), activeItem: EOLOptions[selectedIndex] });
|
|
1086
1086
|
if (eol) {
|
|
1087
1087
|
const activeCodeEditor = getCodeEditor(editorService.activeTextEditorControl);
|
|
1088
1088
|
if (activeCodeEditor?.hasModel() && !editorService.activeEditor?.isReadonly()) {
|
|
@@ -1099,7 +1099,7 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1099
1099
|
constructor() {
|
|
1100
1100
|
super({
|
|
1101
1101
|
id: 'workbench.action.editor.changeEncoding',
|
|
1102
|
-
title: ( localize2(
|
|
1102
|
+
title: ( localize2(9777, 'Change File Encoding')),
|
|
1103
1103
|
f1: true
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
@@ -1111,21 +1111,21 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1111
1111
|
const textResourceConfigurationService = accessor.get(ITextResourceConfigurationService);
|
|
1112
1112
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1113
1113
|
if (!activeTextEditorControl) {
|
|
1114
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1114
|
+
await quickInputService.pick([{ label: ( localize(9735, "No text editor active at this time")) }]);
|
|
1115
1115
|
return;
|
|
1116
1116
|
}
|
|
1117
1117
|
const activeEditorPane = editorService.activeEditorPane;
|
|
1118
1118
|
if (!activeEditorPane) {
|
|
1119
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1119
|
+
await quickInputService.pick([{ label: ( localize(9735, "No text editor active at this time")) }]);
|
|
1120
1120
|
return;
|
|
1121
1121
|
}
|
|
1122
1122
|
const encodingSupport = toEditorWithEncodingSupport(activeEditorPane.input);
|
|
1123
1123
|
if (!encodingSupport) {
|
|
1124
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1124
|
+
await quickInputService.pick([{ label: ( localize(9778, "No file active at this time")) }]);
|
|
1125
1125
|
return;
|
|
1126
1126
|
}
|
|
1127
|
-
const saveWithEncodingPick = { label: ( localize(
|
|
1128
|
-
const reopenWithEncodingPick = { label: ( localize(
|
|
1127
|
+
const saveWithEncodingPick = { label: ( localize(9779, "Save with Encoding")) };
|
|
1128
|
+
const reopenWithEncodingPick = { label: ( localize(9780, "Reopen with Encoding")) };
|
|
1129
1129
|
if (!Language.isDefaultVariant()) {
|
|
1130
1130
|
const saveWithEncodingAlias = 'Save with Encoding';
|
|
1131
1131
|
if (saveWithEncodingAlias !== saveWithEncodingPick.label) {
|
|
@@ -1144,7 +1144,7 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1144
1144
|
action = reopenWithEncodingPick;
|
|
1145
1145
|
}
|
|
1146
1146
|
else {
|
|
1147
|
-
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: ( localize(
|
|
1147
|
+
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: ( localize(9739, "Select Action")), matchOnDetail: true });
|
|
1148
1148
|
}
|
|
1149
1149
|
if (!action) {
|
|
1150
1150
|
return;
|
|
@@ -1194,10 +1194,10 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1194
1194
|
const items = picks.slice();
|
|
1195
1195
|
if (guessedEncoding && configuredEncoding !== guessedEncoding && SUPPORTED_ENCODINGS[guessedEncoding]) {
|
|
1196
1196
|
picks.unshift({ type: 'separator' });
|
|
1197
|
-
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: ( localize(
|
|
1197
|
+
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: ( localize(9781, "Guessed from content")) });
|
|
1198
1198
|
}
|
|
1199
1199
|
const encoding = await quickInputService.pick(picks, {
|
|
1200
|
-
placeHolder: isReopenWithEncoding ? ( localize(
|
|
1200
|
+
placeHolder: isReopenWithEncoding ? ( localize(9782, "Select File Encoding to Reopen File")) : ( localize(9783, "Select File Encoding to Save with")),
|
|
1201
1201
|
activeItem: items[typeof directMatchIndex === 'number' ? directMatchIndex : typeof aliasMatchIndex === 'number' ? aliasMatchIndex : -1]
|
|
1202
1202
|
});
|
|
1203
1203
|
if (!encoding) {
|
|
@@ -50,7 +50,7 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
|
|
|
50
50
|
if (this.input) {
|
|
51
51
|
return this.input.getName();
|
|
52
52
|
}
|
|
53
|
-
return ( localize(
|
|
53
|
+
return ( localize(9725, "Text Diff Editor"));
|
|
54
54
|
}
|
|
55
55
|
createEditorControl(parent, configuration) {
|
|
56
56
|
this.diffEditorControl = this._register(this.instantiationService.createInstance(DiffEditorWidget, parent, configuration, {}));
|
|
@@ -113,14 +113,14 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
|
|
|
113
113
|
let message;
|
|
114
114
|
if (error instanceof TooLargeFileOperationError) {
|
|
115
115
|
message = ( localize(
|
|
116
|
-
|
|
116
|
+
9726,
|
|
117
117
|
"At least one file is not displayed in the text compare editor because it is very large ({0}).",
|
|
118
118
|
ByteSize.formatSize(error.size)
|
|
119
119
|
));
|
|
120
120
|
}
|
|
121
121
|
else {
|
|
122
122
|
message = ( localize(
|
|
123
|
-
|
|
123
|
+
9727,
|
|
124
124
|
"At least one file is not displayed in the text compare editor because it is very large."
|
|
125
125
|
));
|
|
126
126
|
}
|
|
@@ -36,8 +36,8 @@ const defaultWindowTitle = (() => {
|
|
|
36
36
|
const defaultWindowTitleSeparator = isMacintosh ? ' \u2014 ' : ' - ';
|
|
37
37
|
let WindowTitle = class WindowTitle extends Disposable {
|
|
38
38
|
static { WindowTitle_1 = this; }
|
|
39
|
-
static { this.NLS_USER_IS_ADMIN = isWindows ? ( localize(
|
|
40
|
-
static { this.NLS_EXTENSION_HOST = ( localize(
|
|
39
|
+
static { this.NLS_USER_IS_ADMIN = isWindows ? ( localize(4897, "[Administrator]")) : ( localize(4898, "[Superuser]")); }
|
|
40
|
+
static { this.NLS_EXTENSION_HOST = ( localize(4899, "[Extension Development Host]")); }
|
|
41
41
|
static { this.TITLE_DIRTY = '\u25cf '; }
|
|
42
42
|
get value() { return this.title ?? ''; }
|
|
43
43
|
get workspaceName() { return this.labelService.getWorkspaceLabel(this.contextService.getWorkspace()); }
|
|
@@ -175,7 +175,7 @@ function isTreeCommandEnabled(treeCommand, contextKeyService) {
|
|
|
175
175
|
function isRenderedMessageValue(messageValue) {
|
|
176
176
|
return !!messageValue && typeof messageValue !== 'string' && 'element' in messageValue && 'disposables' in messageValue;
|
|
177
177
|
}
|
|
178
|
-
const noDataProviderMessage = ( localize(
|
|
178
|
+
const noDataProviderMessage = ( localize(9718, "There is no data provider registered that can provide view data."));
|
|
179
179
|
const RawCustomTreeViewContextKey = ( (new RawContextKey('customTreeView', false)));
|
|
180
180
|
class Tree extends WorkbenchAsyncDataTree {
|
|
181
181
|
}
|
|
@@ -413,7 +413,7 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
413
413
|
initializeShowCollapseAllAction(startingValue = false) {
|
|
414
414
|
if (!this.collapseAllContext) {
|
|
415
415
|
this.collapseAllContextKey = ( (new RawContextKey(`treeView.${this.id}.enableCollapseAll`, startingValue, ( localize(
|
|
416
|
-
|
|
416
|
+
9719,
|
|
417
417
|
"Whether the the tree view with id {0} enables collapse all.",
|
|
418
418
|
this.id
|
|
419
419
|
)))));
|
|
@@ -431,7 +431,7 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
431
431
|
}
|
|
432
432
|
initializeShowRefreshAction(startingValue = false) {
|
|
433
433
|
if (!this.refreshContext) {
|
|
434
|
-
this.refreshContextKey = ( (new RawContextKey(`treeView.${this.id}.enableRefresh`, startingValue, ( localize(
|
|
434
|
+
this.refreshContextKey = ( (new RawContextKey(`treeView.${this.id}.enableRefresh`, startingValue, ( localize(9720, "Whether the tree view with id {0} enables refresh.", this.id)))));
|
|
435
435
|
this.refreshContext = this.refreshContextKey.bindTo(this.contextKeyService);
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -449,7 +449,7 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
449
449
|
constructor() {
|
|
450
450
|
super({
|
|
451
451
|
id: `workbench.actions.treeView.${that.id}.refresh`,
|
|
452
|
-
title: ( localize(
|
|
452
|
+
title: ( localize(9721, "Refresh")),
|
|
453
453
|
menu: {
|
|
454
454
|
id: MenuId.ViewTitle,
|
|
455
455
|
when: ( (ContextKeyExpr.and(
|
|
@@ -470,7 +470,7 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
470
470
|
constructor() {
|
|
471
471
|
super({
|
|
472
472
|
id: `workbench.actions.treeView.${that.id}.collapseAll`,
|
|
473
|
-
title: ( localize(
|
|
473
|
+
title: ( localize(9722, "Collapse All")),
|
|
474
474
|
menu: {
|
|
475
475
|
id: MenuId.ViewTitle,
|
|
476
476
|
when: ( (ContextKeyExpr.and(
|
|
@@ -943,7 +943,7 @@ let AbstractTreeView = class AbstractTreeView extends Disposable {
|
|
|
943
943
|
initializeCollapseAllToggle() {
|
|
944
944
|
if (!this.collapseAllToggleContext) {
|
|
945
945
|
this.collapseAllToggleContextKey = ( (new RawContextKey(`treeView.${this.id}.toggleCollapseAll`, false, ( localize(
|
|
946
|
-
|
|
946
|
+
9723,
|
|
947
947
|
"Whether collapse all is toggled for the tree view with id {0}.",
|
|
948
948
|
this.id
|
|
949
949
|
)))));
|
|
@@ -1367,7 +1367,7 @@ class MultipleSelectionActionRunner extends ActionRunner {
|
|
|
1367
1367
|
this._register(this.onDidRun(e => {
|
|
1368
1368
|
if (e.error && !isCancellationError(e.error)) {
|
|
1369
1369
|
notificationService.error(( localize(
|
|
1370
|
-
|
|
1370
|
+
9724,
|
|
1371
1371
|
'Error running command {1}: {0}. This is likely caused by the extension that contributes {1}.',
|
|
1372
1372
|
e.error.message,
|
|
1373
1373
|
e.action.id
|
|
@@ -9,7 +9,7 @@ import { IEditorGroupsService } from '../services/editor/common/editorGroupsServ
|
|
|
9
9
|
import { IEditorService } from '../services/editor/common/editorService.service.js';
|
|
10
10
|
|
|
11
11
|
const inQuickPickContextKeyValue = 'inQuickOpen';
|
|
12
|
-
const InQuickPickContextKey = ( (new RawContextKey(inQuickPickContextKeyValue, false, ( localize(
|
|
12
|
+
const InQuickPickContextKey = ( (new RawContextKey(inQuickPickContextKeyValue, false, ( localize(4671, "Whether keyboard focus is inside the quick open control")))));
|
|
13
13
|
const inQuickPickContext = ( (ContextKeyExpr.has(inQuickPickContextKeyValue)));
|
|
14
14
|
const defaultQuickAccessContextKeyValue = 'inFilesPicker';
|
|
15
15
|
const defaultQuickAccessContext = ( (ContextKeyExpr.and(
|