@codingame/monaco-vscode-api 8.0.1 → 8.0.3
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 +24 -0
- 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/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/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +49 -49
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/editor.api.d.ts +91 -69
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- 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/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- 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/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +7 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +9 -9
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +166 -166
- 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/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- 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/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- 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/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +32 -32
- 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/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -115,7 +115,7 @@ EditorPlaceholder = EditorPlaceholder_1 = ( (__decorate([
|
|
|
115
115
|
let WorkspaceTrustRequiredPlaceholderEditor = class WorkspaceTrustRequiredPlaceholderEditor extends EditorPlaceholder {
|
|
116
116
|
static { WorkspaceTrustRequiredPlaceholderEditor_1 = this; }
|
|
117
117
|
static { this.ID = 'workbench.editors.workspaceTrustRequiredEditor'; }
|
|
118
|
-
static { this.LABEL = ( localize(
|
|
118
|
+
static { this.LABEL = ( localize(11474, "Workspace Trust Required")); }
|
|
119
119
|
static { this.DESCRIPTOR = EditorPaneDescriptor.create(WorkspaceTrustRequiredPlaceholderEditor_1, this.ID, this.LABEL); }
|
|
120
120
|
constructor(group, telemetryService, themeService, commandService, workspaceService, storageService) {
|
|
121
121
|
super(WorkspaceTrustRequiredPlaceholderEditor_1.ID, group, telemetryService, themeService, storageService);
|
|
@@ -130,16 +130,16 @@ let WorkspaceTrustRequiredPlaceholderEditor = class WorkspaceTrustRequiredPlaceh
|
|
|
130
130
|
icon: '$(workspace-untrusted)',
|
|
131
131
|
label: isSingleFolderWorkspaceIdentifier(toWorkspaceIdentifier(this.workspaceService.getWorkspace())) ?
|
|
132
132
|
( localize(
|
|
133
|
-
|
|
133
|
+
11475,
|
|
134
134
|
"The file is not displayed in the editor because trust has not been granted to the folder."
|
|
135
135
|
)) :
|
|
136
136
|
( localize(
|
|
137
|
-
|
|
137
|
+
11476,
|
|
138
138
|
"The file is not displayed in the editor because trust has not been granted to the workspace."
|
|
139
139
|
)),
|
|
140
140
|
actions: [
|
|
141
141
|
{
|
|
142
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(11477, "Manage Workspace Trust")),
|
|
143
143
|
run: () => this.commandService.executeCommand('workbench.trust.manage')
|
|
144
144
|
}
|
|
145
145
|
]
|
|
@@ -156,7 +156,7 @@ WorkspaceTrustRequiredPlaceholderEditor = WorkspaceTrustRequiredPlaceholderEdito
|
|
|
156
156
|
let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlaceholder {
|
|
157
157
|
static { ErrorPlaceholderEditor_1 = this; }
|
|
158
158
|
static { this.ID = 'workbench.editors.errorEditor'; }
|
|
159
|
-
static { this.LABEL = ( localize(
|
|
159
|
+
static { this.LABEL = ( localize(11478, "Error Editor")); }
|
|
160
160
|
static { this.DESCRIPTOR = EditorPaneDescriptor.create(ErrorPlaceholderEditor_1, this.ID, this.LABEL); }
|
|
161
161
|
constructor(group, telemetryService, themeService, storageService, fileService, dialogService) {
|
|
162
162
|
super(ErrorPlaceholderEditor_1.ID, group, telemetryService, themeService, storageService);
|
|
@@ -169,20 +169,20 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
|
|
|
169
169
|
const isFileNotFound = error?.fileOperationResult === FileOperationResult.FILE_NOT_FOUND;
|
|
170
170
|
let label;
|
|
171
171
|
if (isFileNotFound) {
|
|
172
|
-
label = ( localize(
|
|
172
|
+
label = ( localize(11479, "The editor could not be opened because the file was not found."));
|
|
173
173
|
}
|
|
174
174
|
else if (isEditorOpenError(error) && error.forceMessage) {
|
|
175
175
|
label = error.message;
|
|
176
176
|
}
|
|
177
177
|
else if (error) {
|
|
178
178
|
label = ( localize(
|
|
179
|
-
|
|
179
|
+
11480,
|
|
180
180
|
"The editor could not be opened due to an unexpected error: {0}",
|
|
181
181
|
truncateMiddle(toErrorMessage(error), EditorPlaceholder.PLACEHOLDER_LABEL_MAX_LENGTH / 2)
|
|
182
182
|
));
|
|
183
183
|
}
|
|
184
184
|
else {
|
|
185
|
-
label = ( localize(
|
|
185
|
+
label = ( localize(11481, "The editor could not be opened due to an unexpected error."));
|
|
186
186
|
}
|
|
187
187
|
let icon = '$(error)';
|
|
188
188
|
if (isEditorOpenError(error)) {
|
|
@@ -210,7 +210,7 @@ let ErrorPlaceholderEditor = class ErrorPlaceholderEditor extends EditorPlacehol
|
|
|
210
210
|
else {
|
|
211
211
|
actions = [
|
|
212
212
|
{
|
|
213
|
-
label: ( localize(
|
|
213
|
+
label: ( localize(11482, "Try Again")),
|
|
214
214
|
run: () => this.group.openEditor(input, { ...options, source: EditorOpenSource.USER })
|
|
215
215
|
}
|
|
216
216
|
];
|
|
@@ -19,7 +19,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
19
19
|
super(prefix, {
|
|
20
20
|
canAcceptInBackground: true,
|
|
21
21
|
noResultsPick: {
|
|
22
|
-
label: ( localize(
|
|
22
|
+
label: ( localize(9725, "No matching editors")),
|
|
23
23
|
groupId: -1
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -110,19 +110,19 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
110
110
|
if (mapGroupIdToGroupAriaLabel.size > 1) {
|
|
111
111
|
return isDirty ?
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
9726,
|
|
114
114
|
"{0}, unsaved changes, {1}",
|
|
115
115
|
nameAndDescription,
|
|
116
116
|
mapGroupIdToGroupAriaLabel.get(groupId)
|
|
117
117
|
)) :
|
|
118
118
|
( localize(
|
|
119
|
-
|
|
119
|
+
9727,
|
|
120
120
|
"{0}, {1}",
|
|
121
121
|
nameAndDescription,
|
|
122
122
|
mapGroupIdToGroupAriaLabel.get(groupId)
|
|
123
123
|
));
|
|
124
124
|
}
|
|
125
|
-
return isDirty ? ( localize(
|
|
125
|
+
return isDirty ? ( localize(9728, "{0}, unsaved changes", nameAndDescription)) : nameAndDescription;
|
|
126
126
|
})(),
|
|
127
127
|
description,
|
|
128
128
|
iconClasses: getIconClasses(this.modelService, this.languageService, resource, undefined, editor.getIcon()).concat(editor.getLabelExtraClasses()),
|
|
@@ -131,7 +131,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
131
131
|
return [
|
|
132
132
|
{
|
|
133
133
|
iconClass: isDirty ? ('dirty-editor ' + ThemeIcon.asClassName(Codicon.closeDirty)) : ThemeIcon.asClassName(Codicon.close),
|
|
134
|
-
tooltip: ( localize(
|
|
134
|
+
tooltip: ( localize(9729, "Close Editor")),
|
|
135
135
|
alwaysVisible: isDirty
|
|
136
136
|
}
|
|
137
137
|
];
|
|
@@ -242,12 +242,12 @@ let TabFocusMode = class TabFocusMode extends Disposable {
|
|
|
242
242
|
TabFocusMode = ( (__decorate([
|
|
243
243
|
( (__param(0, IConfigurationService)))
|
|
244
244
|
], TabFocusMode)));
|
|
245
|
-
const nlsSingleSelectionRange = ( localize(
|
|
246
|
-
const nlsSingleSelection = ( localize(
|
|
247
|
-
const nlsMultiSelectionRange = ( localize(
|
|
248
|
-
const nlsMultiSelection = ( localize(
|
|
249
|
-
const nlsEOLLF = ( localize(
|
|
250
|
-
const nlsEOLCRLF = ( localize(
|
|
245
|
+
const nlsSingleSelectionRange = ( localize(9541, "Ln {0}, Col {1} ({2} selected)"));
|
|
246
|
+
const nlsSingleSelection = ( localize(9542, "Ln {0}, Col {1}"));
|
|
247
|
+
const nlsMultiSelectionRange = ( localize(9543, "{0} selections ({1} characters selected)"));
|
|
248
|
+
const nlsMultiSelection = ( localize(9544, "{0} selections"));
|
|
249
|
+
const nlsEOLLF = ( localize(9545, "LF"));
|
|
250
|
+
const nlsEOLCRLF = ( localize(9546, "CRLF"));
|
|
251
251
|
let EditorStatus = class EditorStatus extends Disposable {
|
|
252
252
|
constructor(targetWindowId, editorService, quickInputService, languageService, textFileService, statusbarService, instantiationService, configurationService) {
|
|
253
253
|
super();
|
|
@@ -295,10 +295,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
295
295
|
async showIndentationPicker() {
|
|
296
296
|
const activeTextEditorControl = getCodeEditor(this.editorService.activeTextEditorControl);
|
|
297
297
|
if (!activeTextEditorControl) {
|
|
298
|
-
return this.quickInputService.pick([{ label: ( localize(
|
|
298
|
+
return this.quickInputService.pick([{ label: ( localize(9547, "No text editor active at this time")) }]);
|
|
299
299
|
}
|
|
300
300
|
if (this.editorService.activeEditor?.isReadonly()) {
|
|
301
|
-
return this.quickInputService.pick([{ label: ( localize(
|
|
301
|
+
return this.quickInputService.pick([{ label: ( localize(9548, "The active code editor is read-only.")) }]);
|
|
302
302
|
}
|
|
303
303
|
const picks = ( ([
|
|
304
304
|
assertIsDefined(activeTextEditorControl.getAction(IndentUsingSpaces.ID)),
|
|
@@ -319,20 +319,20 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
})));
|
|
322
|
-
picks.splice(3, 0, { type: 'separator', label: ( localize(
|
|
323
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
324
|
-
const action = await this.quickInputService.pick(picks, { placeHolder: ( localize(
|
|
322
|
+
picks.splice(3, 0, { type: 'separator', label: ( localize(9549, "convert file")) });
|
|
323
|
+
picks.unshift({ type: 'separator', label: ( localize(9550, "change view")) });
|
|
324
|
+
const action = await this.quickInputService.pick(picks, { placeHolder: ( localize(9551, "Select Action")), matchOnDetail: true });
|
|
325
325
|
return action?.run();
|
|
326
326
|
}
|
|
327
327
|
updateTabFocusModeElement(visible) {
|
|
328
328
|
if (visible) {
|
|
329
329
|
if (!this.tabFocusModeElement.value) {
|
|
330
|
-
const text = ( localize(
|
|
330
|
+
const text = ( localize(9552, "Tab Moves Focus"));
|
|
331
331
|
this.tabFocusModeElement.value = this.statusbarService.addEntry({
|
|
332
|
-
name: ( localize(
|
|
332
|
+
name: ( localize(9553, "Accessibility Mode")),
|
|
333
333
|
text,
|
|
334
334
|
ariaLabel: text,
|
|
335
|
-
tooltip: ( localize(
|
|
335
|
+
tooltip: ( localize(9554, "Disable Accessibility Mode")),
|
|
336
336
|
command: 'editor.action.toggleTabFocusMode',
|
|
337
337
|
kind: 'prominent'
|
|
338
338
|
}, 'status.editor.tabFocusMode', StatusbarAlignment.RIGHT, 100.7);
|
|
@@ -345,12 +345,12 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
345
345
|
updateColumnSelectionModeElement(visible) {
|
|
346
346
|
if (visible) {
|
|
347
347
|
if (!this.columnSelectionModeElement.value) {
|
|
348
|
-
const text = ( localize(
|
|
348
|
+
const text = ( localize(9555, "Column Selection"));
|
|
349
349
|
this.columnSelectionModeElement.value = this.statusbarService.addEntry({
|
|
350
|
-
name: ( localize(
|
|
350
|
+
name: ( localize(9556, "Column Selection Mode")),
|
|
351
351
|
text,
|
|
352
352
|
ariaLabel: text,
|
|
353
|
-
tooltip: ( localize(
|
|
353
|
+
tooltip: ( localize(9557, "Disable Column Selection Mode")),
|
|
354
354
|
command: 'editor.action.toggleColumnSelection',
|
|
355
355
|
kind: 'prominent'
|
|
356
356
|
}, 'status.editor.columnSelectionMode', StatusbarAlignment.RIGHT, 100.8);
|
|
@@ -371,10 +371,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
371
371
|
return;
|
|
372
372
|
}
|
|
373
373
|
const props = {
|
|
374
|
-
name: ( localize(
|
|
374
|
+
name: ( localize(9558, "Editor Selection")),
|
|
375
375
|
text,
|
|
376
376
|
ariaLabel: text,
|
|
377
|
-
tooltip: ( localize(
|
|
377
|
+
tooltip: ( localize(9559, "Go to Line/Column")),
|
|
378
378
|
command: 'workbench.action.gotoLine'
|
|
379
379
|
};
|
|
380
380
|
this.updateElement(this.selectionElement, props, 'status.editor.selection', StatusbarAlignment.RIGHT, 100.5);
|
|
@@ -390,10 +390,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
390
390
|
return;
|
|
391
391
|
}
|
|
392
392
|
const props = {
|
|
393
|
-
name: ( localize(
|
|
393
|
+
name: ( localize(9560, "Editor Indentation")),
|
|
394
394
|
text,
|
|
395
395
|
ariaLabel: text,
|
|
396
|
-
tooltip: ( localize(
|
|
396
|
+
tooltip: ( localize(9561, "Select Indentation")),
|
|
397
397
|
command: `changeEditorIndentation${this.targetWindowId}`
|
|
398
398
|
};
|
|
399
399
|
this.updateElement(this.indentationElement, props, 'status.editor.indentation', StatusbarAlignment.RIGHT, 100.4);
|
|
@@ -404,10 +404,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
const props = {
|
|
407
|
-
name: ( localize(
|
|
407
|
+
name: ( localize(9562, "Editor Encoding")),
|
|
408
408
|
text,
|
|
409
409
|
ariaLabel: text,
|
|
410
|
-
tooltip: ( localize(
|
|
410
|
+
tooltip: ( localize(9563, "Select Encoding")),
|
|
411
411
|
command: 'workbench.action.editor.changeEncoding'
|
|
412
412
|
};
|
|
413
413
|
this.updateElement(this.encodingElement, props, 'status.editor.encoding', StatusbarAlignment.RIGHT, 100.3);
|
|
@@ -418,10 +418,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
420
|
const props = {
|
|
421
|
-
name: ( localize(
|
|
421
|
+
name: ( localize(9564, "Editor End of Line")),
|
|
422
422
|
text,
|
|
423
423
|
ariaLabel: text,
|
|
424
|
-
tooltip: ( localize(
|
|
424
|
+
tooltip: ( localize(9565, "Select End of Line Sequence")),
|
|
425
425
|
command: 'workbench.action.editor.changeEOL'
|
|
426
426
|
};
|
|
427
427
|
this.updateElement(this.eolElement, props, 'status.editor.eol', StatusbarAlignment.RIGHT, 100.2);
|
|
@@ -432,10 +432,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
434
|
const props = {
|
|
435
|
-
name: ( localize(
|
|
435
|
+
name: ( localize(9566, "Editor Language")),
|
|
436
436
|
text,
|
|
437
437
|
ariaLabel: text,
|
|
438
|
-
tooltip: ( localize(
|
|
438
|
+
tooltip: ( localize(9567, "Select Language Mode")),
|
|
439
439
|
command: 'workbench.action.editor.changeLanguageMode'
|
|
440
440
|
};
|
|
441
441
|
this.updateElement(this.languageElement, props, 'status.editor.mode', StatusbarAlignment.RIGHT, 100.1);
|
|
@@ -446,10 +446,10 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
const props = {
|
|
449
|
-
name: ( localize(
|
|
449
|
+
name: ( localize(9568, "File Information")),
|
|
450
450
|
text,
|
|
451
451
|
ariaLabel: text,
|
|
452
|
-
tooltip: ( localize(
|
|
452
|
+
tooltip: ( localize(9569, "File Information"))
|
|
453
453
|
};
|
|
454
454
|
this.updateElement(this.metadataElement, props, 'status.editor.info', StatusbarAlignment.RIGHT, 100);
|
|
455
455
|
}
|
|
@@ -603,14 +603,14 @@ let EditorStatus = class EditorStatus extends Disposable {
|
|
|
603
603
|
const modelOpts = model.getOptions();
|
|
604
604
|
update.indentation = (modelOpts.insertSpaces
|
|
605
605
|
? modelOpts.tabSize === modelOpts.indentSize
|
|
606
|
-
? ( localize(
|
|
606
|
+
? ( localize(9570, "Spaces: {0}", modelOpts.indentSize))
|
|
607
607
|
: ( localize(
|
|
608
|
-
|
|
608
|
+
9571,
|
|
609
609
|
"Spaces: {0} (Tab Size: {1})",
|
|
610
610
|
modelOpts.indentSize,
|
|
611
611
|
modelOpts.tabSize
|
|
612
612
|
))
|
|
613
|
-
: ( localize(
|
|
613
|
+
: ( localize(9572, "Tab Size: {0}", modelOpts.tabSize)));
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
this.updateState(update);
|
|
@@ -756,9 +756,9 @@ let ShowCurrentMarkerInStatusbarContribution = class ShowCurrentMarkerInStatusba
|
|
|
756
756
|
const line = splitLines(this.currentMarker.message)[0];
|
|
757
757
|
const text = `${this.getType(this.currentMarker)} ${line}`;
|
|
758
758
|
if (!this.statusBarEntryAccessor.value) {
|
|
759
|
-
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: ( localize(
|
|
759
|
+
this.statusBarEntryAccessor.value = this.statusbarService.addEntry({ name: ( localize(9573, "Current Problem")), text: '', ariaLabel: '' }, 'statusbar.currentProblem', StatusbarAlignment.LEFT);
|
|
760
760
|
}
|
|
761
|
-
this.statusBarEntryAccessor.value.update({ name: ( localize(
|
|
761
|
+
this.statusBarEntryAccessor.value.update({ name: ( localize(9573, "Current Problem")), text, ariaLabel: text });
|
|
762
762
|
}
|
|
763
763
|
else {
|
|
764
764
|
this.statusBarEntryAccessor.clear();
|
|
@@ -852,7 +852,7 @@ let ShowLanguageExtensionsAction = class ShowLanguageExtensionsAction extends Ac
|
|
|
852
852
|
static { ShowLanguageExtensionsAction_1 = this; }
|
|
853
853
|
static { this.ID = 'workbench.action.showLanguageExtensions'; }
|
|
854
854
|
constructor(fileExtension, commandService, galleryService) {
|
|
855
|
-
super(ShowLanguageExtensionsAction_1.ID, ( localize(
|
|
855
|
+
super(ShowLanguageExtensionsAction_1.ID, ( localize(9574, "Search Marketplace Extensions for '{0}'...", fileExtension)));
|
|
856
856
|
this.fileExtension = fileExtension;
|
|
857
857
|
this.commandService = commandService;
|
|
858
858
|
this.enabled = galleryService.isEnabled();
|
|
@@ -870,7 +870,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
870
870
|
constructor() {
|
|
871
871
|
super({
|
|
872
872
|
id: ChangeLanguageAction.ID,
|
|
873
|
-
title: ( localize2(
|
|
873
|
+
title: ( localize2(9575, 'Change Language Mode')),
|
|
874
874
|
f1: true,
|
|
875
875
|
keybinding: {
|
|
876
876
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -878,10 +878,10 @@ class ChangeLanguageAction extends Action2 {
|
|
|
878
878
|
},
|
|
879
879
|
precondition: ContextKeyExpr.not('notebookEditorFocused'),
|
|
880
880
|
metadata: {
|
|
881
|
-
description: ( localize(
|
|
881
|
+
description: ( localize(9576, "Change the language mode of the active text editor.")),
|
|
882
882
|
args: [
|
|
883
883
|
{
|
|
884
|
-
name: ( localize(
|
|
884
|
+
name: ( localize(9577, "The name of the language mode to change to.")),
|
|
885
885
|
constraint: (value) => typeof value === 'string',
|
|
886
886
|
}
|
|
887
887
|
]
|
|
@@ -900,7 +900,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
900
900
|
const telemetryService = accessor.get(ITelemetryService);
|
|
901
901
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
902
902
|
if (!activeTextEditorControl) {
|
|
903
|
-
await quickInputService.pick([{ label: ( localize(
|
|
903
|
+
await quickInputService.pick([{ label: ( localize(9547, "No text editor active at this time")) }]);
|
|
904
904
|
return;
|
|
905
905
|
}
|
|
906
906
|
const textModel = activeTextEditorControl.getModel();
|
|
@@ -921,10 +921,10 @@ class ChangeLanguageAction extends Action2 {
|
|
|
921
921
|
const extensions = languageService.getExtensions(languageId).join(' ');
|
|
922
922
|
let description;
|
|
923
923
|
if (currentLanguageName === languageName) {
|
|
924
|
-
description = ( localize(
|
|
924
|
+
description = ( localize(9578, "({0}) - Configured Language", languageId));
|
|
925
925
|
}
|
|
926
926
|
else {
|
|
927
|
-
description = ( localize(
|
|
927
|
+
description = ( localize(9579, "({0})", languageId));
|
|
928
928
|
}
|
|
929
929
|
return {
|
|
930
930
|
label: languageName,
|
|
@@ -933,7 +933,7 @@ class ChangeLanguageAction extends Action2 {
|
|
|
933
933
|
description
|
|
934
934
|
};
|
|
935
935
|
})));
|
|
936
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
936
|
+
picks.unshift({ type: 'separator', label: ( localize(9580, "languages (identifier)")) });
|
|
937
937
|
let configureLanguageAssociations;
|
|
938
938
|
let configureLanguageSettings;
|
|
939
939
|
let galleryAction;
|
|
@@ -943,16 +943,16 @@ class ChangeLanguageAction extends Action2 {
|
|
|
943
943
|
if (galleryAction.enabled) {
|
|
944
944
|
picks.unshift(galleryAction);
|
|
945
945
|
}
|
|
946
|
-
configureLanguageSettings = { label: ( localize(
|
|
946
|
+
configureLanguageSettings = { label: ( localize(9581, "Configure '{0}' language based settings...", currentLanguageName)) };
|
|
947
947
|
picks.unshift(configureLanguageSettings);
|
|
948
|
-
configureLanguageAssociations = { label: ( localize(
|
|
948
|
+
configureLanguageAssociations = { label: ( localize(9582, "Configure File Association for '{0}'...", ext)) };
|
|
949
949
|
picks.unshift(configureLanguageAssociations);
|
|
950
950
|
}
|
|
951
951
|
const autoDetectLanguage = {
|
|
952
|
-
label: ( localize(
|
|
952
|
+
label: ( localize(9583, "Auto Detect"))
|
|
953
953
|
};
|
|
954
954
|
picks.unshift(autoDetectLanguage);
|
|
955
|
-
const pick = typeof languageMode === 'string' ? { label: languageMode } : await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
955
|
+
const pick = typeof languageMode === 'string' ? { label: languageMode } : await quickInputService.pick(picks, { placeHolder: ( localize(9584, "Select Language Mode")), matchOnDescription: true });
|
|
956
956
|
if (!pick) {
|
|
957
957
|
return;
|
|
958
958
|
}
|
|
@@ -1034,11 +1034,11 @@ class ChangeLanguageAction extends Action2 {
|
|
|
1034
1034
|
id: languageId,
|
|
1035
1035
|
label: languageName,
|
|
1036
1036
|
iconClasses: getIconClassesForLanguageId(languageId),
|
|
1037
|
-
description: (languageId === currentAssociation) ? ( localize(
|
|
1037
|
+
description: (languageId === currentAssociation) ? ( localize(9585, "Current Association")) : undefined
|
|
1038
1038
|
};
|
|
1039
1039
|
})));
|
|
1040
1040
|
setTimeout(async () => {
|
|
1041
|
-
const language = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
1041
|
+
const language = await quickInputService.pick(picks, { placeHolder: ( localize(9586, "Select Language Mode to Associate with '{0}'", extension || base)) });
|
|
1042
1042
|
if (language) {
|
|
1043
1043
|
const fileAssociationsConfig = configurationService.inspect(FILES_ASSOCIATIONS_CONFIG);
|
|
1044
1044
|
let associationKey;
|
|
@@ -1063,7 +1063,7 @@ class ChangeEOLAction extends Action2 {
|
|
|
1063
1063
|
constructor() {
|
|
1064
1064
|
super({
|
|
1065
1065
|
id: 'workbench.action.editor.changeEOL',
|
|
1066
|
-
title: ( localize2(
|
|
1066
|
+
title: ( localize2(9587, 'Change End of Line Sequence')),
|
|
1067
1067
|
f1: true
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
@@ -1072,11 +1072,11 @@ class ChangeEOLAction extends Action2 {
|
|
|
1072
1072
|
const quickInputService = accessor.get(IQuickInputService);
|
|
1073
1073
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1074
1074
|
if (!activeTextEditorControl) {
|
|
1075
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1075
|
+
await quickInputService.pick([{ label: ( localize(9547, "No text editor active at this time")) }]);
|
|
1076
1076
|
return;
|
|
1077
1077
|
}
|
|
1078
1078
|
if (editorService.activeEditor?.isReadonly()) {
|
|
1079
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1079
|
+
await quickInputService.pick([{ label: ( localize(9548, "The active code editor is read-only.")) }]);
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
1082
|
let textModel = activeTextEditorControl.getModel();
|
|
@@ -1085,7 +1085,7 @@ class ChangeEOLAction extends Action2 {
|
|
|
1085
1085
|
{ label: nlsEOLCRLF, eol: EndOfLineSequence.CRLF },
|
|
1086
1086
|
];
|
|
1087
1087
|
const selectedIndex = (textModel?.getEOL() === '\n') ? 0 : 1;
|
|
1088
|
-
const eol = await quickInputService.pick(EOLOptions, { placeHolder: ( localize(
|
|
1088
|
+
const eol = await quickInputService.pick(EOLOptions, { placeHolder: ( localize(9588, "Select End of Line Sequence")), activeItem: EOLOptions[selectedIndex] });
|
|
1089
1089
|
if (eol) {
|
|
1090
1090
|
const activeCodeEditor = getCodeEditor(editorService.activeTextEditorControl);
|
|
1091
1091
|
if (activeCodeEditor?.hasModel() && !editorService.activeEditor?.isReadonly()) {
|
|
@@ -1102,7 +1102,7 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1102
1102
|
constructor() {
|
|
1103
1103
|
super({
|
|
1104
1104
|
id: 'workbench.action.editor.changeEncoding',
|
|
1105
|
-
title: ( localize2(
|
|
1105
|
+
title: ( localize2(9589, 'Change File Encoding')),
|
|
1106
1106
|
f1: true
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
@@ -1114,21 +1114,21 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1114
1114
|
const textResourceConfigurationService = accessor.get(ITextResourceConfigurationService);
|
|
1115
1115
|
const activeTextEditorControl = getCodeEditor(editorService.activeTextEditorControl);
|
|
1116
1116
|
if (!activeTextEditorControl) {
|
|
1117
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1117
|
+
await quickInputService.pick([{ label: ( localize(9547, "No text editor active at this time")) }]);
|
|
1118
1118
|
return;
|
|
1119
1119
|
}
|
|
1120
1120
|
const activeEditorPane = editorService.activeEditorPane;
|
|
1121
1121
|
if (!activeEditorPane) {
|
|
1122
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1122
|
+
await quickInputService.pick([{ label: ( localize(9547, "No text editor active at this time")) }]);
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
1125
|
const encodingSupport = toEditorWithEncodingSupport(activeEditorPane.input);
|
|
1126
1126
|
if (!encodingSupport) {
|
|
1127
|
-
await quickInputService.pick([{ label: ( localize(
|
|
1127
|
+
await quickInputService.pick([{ label: ( localize(9590, "No file active at this time")) }]);
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
|
-
const saveWithEncodingPick = { label: ( localize(
|
|
1131
|
-
const reopenWithEncodingPick = { label: ( localize(
|
|
1130
|
+
const saveWithEncodingPick = { label: ( localize(9591, "Save with Encoding")) };
|
|
1131
|
+
const reopenWithEncodingPick = { label: ( localize(9592, "Reopen with Encoding")) };
|
|
1132
1132
|
if (!Language.isDefaultVariant()) {
|
|
1133
1133
|
const saveWithEncodingAlias = 'Save with Encoding';
|
|
1134
1134
|
if (saveWithEncodingAlias !== saveWithEncodingPick.label) {
|
|
@@ -1147,7 +1147,7 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1147
1147
|
action = reopenWithEncodingPick;
|
|
1148
1148
|
}
|
|
1149
1149
|
else {
|
|
1150
|
-
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: ( localize(
|
|
1150
|
+
action = await quickInputService.pick([reopenWithEncodingPick, saveWithEncodingPick], { placeHolder: ( localize(9551, "Select Action")), matchOnDetail: true });
|
|
1151
1151
|
}
|
|
1152
1152
|
if (!action) {
|
|
1153
1153
|
return;
|
|
@@ -1197,10 +1197,10 @@ class ChangeEncodingAction extends Action2 {
|
|
|
1197
1197
|
const items = picks.slice();
|
|
1198
1198
|
if (guessedEncoding && configuredEncoding !== guessedEncoding && SUPPORTED_ENCODINGS[guessedEncoding]) {
|
|
1199
1199
|
picks.unshift({ type: 'separator' });
|
|
1200
|
-
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: ( localize(
|
|
1200
|
+
picks.unshift({ id: guessedEncoding, label: SUPPORTED_ENCODINGS[guessedEncoding].labelLong, description: ( localize(9593, "Guessed from content")) });
|
|
1201
1201
|
}
|
|
1202
1202
|
const encoding = await quickInputService.pick(picks, {
|
|
1203
|
-
placeHolder: isReopenWithEncoding ? ( localize(
|
|
1203
|
+
placeHolder: isReopenWithEncoding ? ( localize(9594, "Select File Encoding to Reopen File")) : ( localize(9595, "Select File Encoding to Save with")),
|
|
1204
1204
|
activeItem: items[typeof directMatchIndex === 'number' ? directMatchIndex : typeof aliasMatchIndex === 'number' ? aliasMatchIndex : -1]
|
|
1205
1205
|
});
|
|
1206
1206
|
if (!encoding) {
|
|
@@ -51,7 +51,7 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
|
|
|
51
51
|
if (this.input) {
|
|
52
52
|
return this.input.getName();
|
|
53
53
|
}
|
|
54
|
-
return ( localize(
|
|
54
|
+
return ( localize(9537, "Text Diff Editor"));
|
|
55
55
|
}
|
|
56
56
|
createEditorControl(parent, configuration) {
|
|
57
57
|
this.diffEditorControl = this._register(this.instantiationService.createInstance(DiffEditorWidget, parent, configuration, {}));
|
|
@@ -114,14 +114,14 @@ let TextDiffEditor = class TextDiffEditor extends AbstractTextEditor {
|
|
|
114
114
|
let message;
|
|
115
115
|
if (error instanceof TooLargeFileOperationError) {
|
|
116
116
|
message = ( localize(
|
|
117
|
-
|
|
117
|
+
9538,
|
|
118
118
|
"At least one file is not displayed in the text compare editor because it is very large ({0}).",
|
|
119
119
|
ByteSize.formatSize(error.size)
|
|
120
120
|
));
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
123
|
message = ( localize(
|
|
124
|
-
|
|
124
|
+
9539,
|
|
125
125
|
"At least one file is not displayed in the text compare editor because it is very large."
|
|
126
126
|
));
|
|
127
127
|
}
|
|
@@ -65,7 +65,7 @@ let AbstractTextEditor = class AbstractTextEditor extends AbstractEditorWithView
|
|
|
65
65
|
return editorConfiguration;
|
|
66
66
|
}
|
|
67
67
|
computeAriaLabel() {
|
|
68
|
-
return this.input ? computeEditorAriaLabel(this.input, undefined, this.group, this.editorGroupService.count) : ( localize(
|
|
68
|
+
return this.input ? computeEditorAriaLabel(this.input, undefined, this.group, this.editorGroupService.count) : ( localize(11473, "Editor"));
|
|
69
69
|
}
|
|
70
70
|
onDidChangeFileSystemProvider(scheme) {
|
|
71
71
|
if (!this.input) {
|
|
@@ -47,21 +47,21 @@ class NotificationsAlerts extends Disposable {
|
|
|
47
47
|
let alertText;
|
|
48
48
|
if (notification.severity === Severity$1.Error) {
|
|
49
49
|
alertText = ( localize(
|
|
50
|
-
|
|
50
|
+
3136,
|
|
51
51
|
"Error: {0}",
|
|
52
52
|
(notification.message.linkedText.toString())
|
|
53
53
|
));
|
|
54
54
|
}
|
|
55
55
|
else if (notification.severity === Severity$1.Warning) {
|
|
56
56
|
alertText = ( localize(
|
|
57
|
-
|
|
57
|
+
3137,
|
|
58
58
|
"Warning: {0}",
|
|
59
59
|
(notification.message.linkedText.toString())
|
|
60
60
|
));
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
63
63
|
alertText = ( localize(
|
|
64
|
-
|
|
64
|
+
3138,
|
|
65
65
|
"Info: {0}",
|
|
66
66
|
(notification.message.linkedText.toString())
|
|
67
67
|
));
|
|
@@ -101,11 +101,11 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
101
101
|
updateTitle() {
|
|
102
102
|
const [notificationsCenterTitle, clearAllAction] = assertAllDefined(this.notificationsCenterTitle, this.clearAllAction);
|
|
103
103
|
if (this.model.notifications.length === 0) {
|
|
104
|
-
notificationsCenterTitle.textContent = ( localize(
|
|
104
|
+
notificationsCenterTitle.textContent = ( localize(3139, "No new notifications"));
|
|
105
105
|
clearAllAction.enabled = false;
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
|
-
notificationsCenterTitle.textContent = ( localize(
|
|
108
|
+
notificationsCenterTitle.textContent = ( localize(3140, "Notifications"));
|
|
109
109
|
clearAllAction.enabled = ( (this.model.notifications.some(notification => !notification.hasProgress)));
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -124,7 +124,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
124
124
|
const actionRunner = this._register(this.instantiationService.createInstance(NotificationActionRunner));
|
|
125
125
|
const that = this;
|
|
126
126
|
const notificationsToolBar = this._register(( (new ActionBar(toolbarContainer, {
|
|
127
|
-
ariaLabel: ( localize(
|
|
127
|
+
ariaLabel: ( localize(3141, "Notification Center Actions")),
|
|
128
128
|
actionRunner,
|
|
129
129
|
actionViewItemProvider: (action, options) => {
|
|
130
130
|
if (action.id === ConfigureDoNotDisturbAction.ID) {
|
|
@@ -132,7 +132,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
132
132
|
getActions() {
|
|
133
133
|
const actions = [toAction({
|
|
134
134
|
id: ToggleDoNotDisturbAction.ID,
|
|
135
|
-
label: that.notificationService.getFilter() === NotificationsFilter.OFF ? ( localize(
|
|
135
|
+
label: that.notificationService.getFilter() === NotificationsFilter.OFF ? ( localize(3142, "Enable Do Not Disturb Mode")) : ( localize(3143, "Disable Do Not Disturb Mode")),
|
|
136
136
|
run: () => that.notificationService.setFilter(that.notificationService.getFilter() === NotificationsFilter.OFF ? NotificationsFilter.ERROR : NotificationsFilter.OFF)
|
|
137
137
|
})];
|
|
138
138
|
const sortedFilters = that.notificationService.getFilters().sort((a, b) => a.label.localeCompare(b.label));
|
|
@@ -152,7 +152,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
152
152
|
}
|
|
153
153
|
if (sortedFilters.length > NotificationsCenter_1.MAX_NOTIFICATION_SOURCES) {
|
|
154
154
|
actions.push(( (new Separator())));
|
|
155
|
-
actions.push(that._register(that.instantiationService.createInstance(ToggleDoNotDisturbBySourceAction, ToggleDoNotDisturbBySourceAction.ID, ( localize(
|
|
155
|
+
actions.push(that._register(that.instantiationService.createInstance(ToggleDoNotDisturbBySourceAction, ToggleDoNotDisturbBySourceAction.ID, ( localize(3144, "More…")))));
|
|
156
156
|
}
|
|
157
157
|
return actions;
|
|
158
158
|
},
|
|
@@ -173,7 +173,7 @@ let NotificationsCenter = class NotificationsCenter extends Themable {
|
|
|
173
173
|
const hideAllAction = this._register(this.instantiationService.createInstance(HideNotificationsCenterAction, HideNotificationsCenterAction.ID, HideNotificationsCenterAction.LABEL));
|
|
174
174
|
notificationsToolBar.push(hideAllAction, { icon: true, label: false, keybinding: this.getKeybindingLabel(hideAllAction) });
|
|
175
175
|
this.notificationsList = this.instantiationService.createInstance(NotificationsList, this.notificationsCenterContainer, {
|
|
176
|
-
widgetAriaLabel: ( localize(
|
|
176
|
+
widgetAriaLabel: ( localize(3145, "Notifications Center"))
|
|
177
177
|
});
|
|
178
178
|
this.container.appendChild(this.notificationsCenterContainer);
|
|
179
179
|
}
|