@codingame/monaco-vscode-api 26.0.0 → 26.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/common/strings.d.ts +30 -0
- package/vscode/src/vs/base/common/strings.js +11 -0
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/images/opacity-background.png +0 -0
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css +2 -2
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/keyboard-dark.svg +10 -0
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/keyboard-light.svg +10 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-dark.svg +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading-hc.svg +31 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/loading.svg +31 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +9 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- 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/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- 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/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +54 -54
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- 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/accounts/browser/defaultAccount.js +100 -41
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +14 -14
- 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/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- 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/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 +18 -18
- 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/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
|
@@ -145,11 +145,11 @@ let MultiDiffEditorInput = class MultiDiffEditorInput extends EditorInput {
|
|
|
145
145
|
};
|
|
146
146
|
this._register(autorun(reader => {
|
|
147
147
|
const resources = this.resources.read(reader);
|
|
148
|
-
const label = this.label ?? ( localize(
|
|
148
|
+
const label = this.label ?? ( localize(9535, "Multi Diff Editor"));
|
|
149
149
|
if (resources && resources.length === 1) {
|
|
150
|
-
this._name = ( localize(
|
|
150
|
+
this._name = ( localize(9536, "{0} (1 file)", label));
|
|
151
151
|
} else if (resources) {
|
|
152
|
-
this._name = ( localize(
|
|
152
|
+
this._name = ( localize(9537, "{0} ({1} files)", label, resources.length));
|
|
153
153
|
} else {
|
|
154
154
|
this._name = label;
|
|
155
155
|
}
|
package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js
CHANGED
|
@@ -49,23 +49,23 @@ import { NotebookFindFilters } from './findFilters.js';
|
|
|
49
49
|
import { NotebookSetting, NotebookFindScopeType } from '../../../common/notebookCommon.js';
|
|
50
50
|
|
|
51
51
|
registerCss(notebookFindReplaceWidget);
|
|
52
|
-
const NLS_FIND_INPUT_LABEL = ( localize(
|
|
53
|
-
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(
|
|
54
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(
|
|
55
|
-
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(
|
|
56
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(
|
|
57
|
-
const NLS_CLOSE_BTN_LABEL = ( localize(
|
|
58
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(
|
|
59
|
-
const NLS_REPLACE_INPUT_LABEL = ( localize(
|
|
60
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(
|
|
61
|
-
const NLS_REPLACE_BTN_LABEL = ( localize(
|
|
62
|
-
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(
|
|
63
|
-
registerIcon("find-filter", Codicon.filter, ( localize(
|
|
64
|
-
const NOTEBOOK_FIND_FILTERS = ( localize(
|
|
65
|
-
const NOTEBOOK_FIND_IN_MARKUP_INPUT = ( localize(
|
|
66
|
-
const NOTEBOOK_FIND_IN_MARKUP_PREVIEW = ( localize(
|
|
67
|
-
const NOTEBOOK_FIND_IN_CODE_INPUT = ( localize(
|
|
68
|
-
const NOTEBOOK_FIND_IN_CODE_OUTPUT = ( localize(
|
|
52
|
+
const NLS_FIND_INPUT_LABEL = ( localize(9594, "Find"));
|
|
53
|
+
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(9595, "Find"));
|
|
54
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(9596, "Previous Match"));
|
|
55
|
+
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(9597, "Next Match"));
|
|
56
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(9598, "Find in Selection"));
|
|
57
|
+
const NLS_CLOSE_BTN_LABEL = ( localize(9599, "Close"));
|
|
58
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(9600, "Toggle Replace"));
|
|
59
|
+
const NLS_REPLACE_INPUT_LABEL = ( localize(9601, "Replace"));
|
|
60
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(9602, "Replace"));
|
|
61
|
+
const NLS_REPLACE_BTN_LABEL = ( localize(9603, "Replace"));
|
|
62
|
+
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(9604, "Replace All"));
|
|
63
|
+
registerIcon("find-filter", Codicon.filter, ( localize(9605, "Icon for Find Filter in find widget.")));
|
|
64
|
+
const NOTEBOOK_FIND_FILTERS = ( localize(9606, "Find Filters"));
|
|
65
|
+
const NOTEBOOK_FIND_IN_MARKUP_INPUT = ( localize(9607, "Markdown Source"));
|
|
66
|
+
const NOTEBOOK_FIND_IN_MARKUP_PREVIEW = ( localize(9608, "Rendered Markdown"));
|
|
67
|
+
const NOTEBOOK_FIND_IN_CODE_INPUT = ( localize(9609, "Code Cell Source"));
|
|
68
|
+
const NOTEBOOK_FIND_IN_CODE_OUTPUT = ( localize(9610, "Code Cell Output"));
|
|
69
69
|
const NOTEBOOK_FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
70
70
|
const NOTEBOOK_FIND_WIDGET_INITIAL_HORIZONTAL_PADDING = 4;
|
|
71
71
|
let NotebookFindFilterActionViewItem = class NotebookFindFilterActionViewItem extends DropdownMenuActionViewItem {
|
|
@@ -402,7 +402,7 @@ async function joinSelectedCells(bulkEditService, notificationService, context)
|
|
|
402
402
|
const cellKind = cells[0].cellKind;
|
|
403
403
|
const isSameKind = cells.every(cell => cell.cellKind === cellKind);
|
|
404
404
|
if (!isSameKind) {
|
|
405
|
-
const message = ( localize(
|
|
405
|
+
const message = ( localize(9669, "Cannot join cells of different kinds"));
|
|
406
406
|
return notificationService.warn(message);
|
|
407
407
|
}
|
|
408
408
|
const firstCell = cells[0];
|
|
@@ -431,7 +431,7 @@ async function joinSelectedCells(bulkEditService, notificationService, context)
|
|
|
431
431
|
}
|
|
432
432
|
if (edits.length) {
|
|
433
433
|
await bulkEditService.apply(edits, {
|
|
434
|
-
quotableLabel: ( localize(
|
|
434
|
+
quotableLabel: ( localize(9670, "Join Notebook Cells"))
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
}
|
|
@@ -22,7 +22,7 @@ registerAction2(class ShowAllOutputsAction extends Action2 {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: "notebook.cellOuput.showEmptyOutputs",
|
|
25
|
-
title: ( localize(
|
|
25
|
+
title: ( localize(9671, "Show Empty Outputs")),
|
|
26
26
|
menu: {
|
|
27
27
|
id: MenuId.NotebookOutputToolbar,
|
|
28
28
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_HAS_HIDDEN_OUTPUTS))
|
|
@@ -47,7 +47,7 @@ registerAction2(class CopyCellOutputAction extends Action2 {
|
|
|
47
47
|
constructor() {
|
|
48
48
|
super({
|
|
49
49
|
id: COPY_OUTPUT_COMMAND_ID,
|
|
50
|
-
title: ( localize(
|
|
50
|
+
title: ( localize(9672, "Copy Cell Output")),
|
|
51
51
|
menu: {
|
|
52
52
|
id: MenuId.NotebookOutputToolbar,
|
|
53
53
|
when: NOTEBOOK_CELL_HAS_OUTPUTS
|
|
@@ -130,7 +130,7 @@ registerAction2(class OpenCellOutputInEditorAction extends Action2 {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super({
|
|
132
132
|
id: OPEN_OUTPUT_COMMAND_ID,
|
|
133
|
-
title: ( localize(
|
|
133
|
+
title: ( localize(9673, "Open Cell Output in Text Editor")),
|
|
134
134
|
f1: false,
|
|
135
135
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
136
136
|
icon: copyIcon
|
|
@@ -159,7 +159,7 @@ registerAction2(class SaveCellOutputImageAction extends Action2 {
|
|
|
159
159
|
constructor() {
|
|
160
160
|
super({
|
|
161
161
|
id: SAVE_OUTPUT_IMAGE_COMMAND_ID,
|
|
162
|
-
title: ( localize(
|
|
162
|
+
title: ( localize(9674, "Save Image")),
|
|
163
163
|
menu: {
|
|
164
164
|
id: MenuId.NotebookOutputToolbar,
|
|
165
165
|
when: ( ContextKeyExpr.regex(NOTEBOOK_CELL_OUTPUT_MIMETYPE.key, /^image\//))
|
|
@@ -207,7 +207,7 @@ registerAction2(class SaveCellOutputImageAction extends Action2 {
|
|
|
207
207
|
const uri = await fileDialogService.showSaveDialog({
|
|
208
208
|
defaultUri,
|
|
209
209
|
filters: [{
|
|
210
|
-
name: ( localize(
|
|
210
|
+
name: ( localize(9675, "Image Files")),
|
|
211
211
|
extensions: [extension]
|
|
212
212
|
}]
|
|
213
213
|
});
|
|
@@ -228,7 +228,7 @@ registerAction2(class OpenCellOutputInNotebookOutputEditorAction extends Action2
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super({
|
|
230
230
|
id: OPEN_OUTPUT_IN_OUTPUT_PREVIEW_COMMAND_ID,
|
|
231
|
-
title: ( localize(
|
|
231
|
+
title: ( localize(9676, "Open in Output Preview")),
|
|
232
232
|
menu: {
|
|
233
233
|
id: MenuId.NotebookOutputToolbar,
|
|
234
234
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, ( ContextKeyExpr.equals("config.notebook.output.openInPreviewEditor.enabled", true))))
|
|
@@ -15,7 +15,7 @@ import { MarshalledId } from '../../../../../base/common/marshallingIds.js';
|
|
|
15
15
|
import { isEqual } from '../../../../../base/common/resources.js';
|
|
16
16
|
|
|
17
17
|
const SELECT_KERNEL_ID = "_notebook.selectKernel";
|
|
18
|
-
const NOTEBOOK_ACTIONS_CATEGORY = ( localize2(
|
|
18
|
+
const NOTEBOOK_ACTIONS_CATEGORY = ( localize2(9691, "Notebook"));
|
|
19
19
|
const CELL_TITLE_CELL_GROUP_ID = "inline/cell";
|
|
20
20
|
const CELL_TITLE_OUTPUT_GROUP_ID = "inline/output";
|
|
21
21
|
const NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT = KeybindingWeight.EditorContrib;
|
|
@@ -321,18 +321,18 @@ const cellExecutionArgs = [{
|
|
|
321
321
|
}];
|
|
322
322
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellTitle, {
|
|
323
323
|
submenu: MenuId.NotebookCellInsert,
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(9692, "Insert Cell")),
|
|
325
325
|
group: CellOverflowToolbarGroups.Insert,
|
|
326
326
|
when: ( NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true))
|
|
327
327
|
});
|
|
328
328
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
329
329
|
submenu: MenuId.NotebookCellTitle,
|
|
330
|
-
title: ( localize(
|
|
330
|
+
title: ( localize(9693, "Notebook Cell")),
|
|
331
331
|
group: CellOverflowToolbarGroups.Insert,
|
|
332
332
|
when: NOTEBOOK_EDITOR_FOCUSED
|
|
333
333
|
});
|
|
334
334
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellTitle, {
|
|
335
|
-
title: ( localize(
|
|
335
|
+
title: ( localize(9694, "Share")),
|
|
336
336
|
submenu: MenuId.EditorContextShare,
|
|
337
337
|
group: CellOverflowToolbarGroups.Share
|
|
338
338
|
});
|
|
@@ -128,8 +128,8 @@ class FoldingController extends Disposable {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
registerNotebookContribution(FoldingController.id, FoldingController);
|
|
131
|
-
const NOTEBOOK_FOLD_COMMAND_LABEL = ( localize(
|
|
132
|
-
const NOTEBOOK_UNFOLD_COMMAND_LABEL = ( localize2(
|
|
131
|
+
const NOTEBOOK_FOLD_COMMAND_LABEL = ( localize(9734, "Fold Cell"));
|
|
132
|
+
const NOTEBOOK_UNFOLD_COMMAND_LABEL = ( localize2(9735, "Unfold Cell"));
|
|
133
133
|
const FOLDING_COMMAND_ARGS = {
|
|
134
134
|
args: [{
|
|
135
135
|
isOptional: true,
|
|
@@ -159,7 +159,7 @@ registerAction2(class extends Action2 {
|
|
|
159
159
|
constructor() {
|
|
160
160
|
super({
|
|
161
161
|
id: "notebook.fold",
|
|
162
|
-
title: ( localize2(
|
|
162
|
+
title: ( localize2(9734, "Fold Cell")),
|
|
163
163
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
164
164
|
keybinding: {
|
|
165
165
|
when: ( ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey))),
|
|
@@ -74,7 +74,7 @@ registerAction2(class InsertCodeCellAboveAction extends InsertCellCommand {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super({
|
|
76
76
|
id: INSERT_CODE_CELL_ABOVE_COMMAND_ID,
|
|
77
|
-
title: ( localize(
|
|
77
|
+
title: ( localize(9736, "Insert Code Cell Above")),
|
|
78
78
|
keybinding: {
|
|
79
79
|
primary: KeyMod$1.CtrlCmd | KeyMod$1.Shift | KeyCode.Enter,
|
|
80
80
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -92,7 +92,7 @@ registerAction2(
|
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: INSERT_CODE_CELL_ABOVE_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
95
|
-
title: ( localize(
|
|
95
|
+
title: ( localize(9737, "Insert Code Cell Above and Focus Container"))
|
|
96
96
|
}, CellKind.Code, "above", false);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -101,7 +101,7 @@ registerAction2(class InsertCodeCellBelowAction extends InsertCellCommand {
|
|
|
101
101
|
constructor() {
|
|
102
102
|
super({
|
|
103
103
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
104
|
-
title: ( localize(
|
|
104
|
+
title: ( localize(9738, "Insert Code Cell Below")),
|
|
105
105
|
keybinding: {
|
|
106
106
|
primary: KeyMod$1.CtrlCmd | KeyCode.Enter,
|
|
107
107
|
when: ( ContextKeyExpr.and(NOTEBOOK_CELL_LIST_FOCUSED, ( InputFocusedContext.toNegated()))),
|
|
@@ -119,7 +119,7 @@ registerAction2(
|
|
|
119
119
|
constructor() {
|
|
120
120
|
super({
|
|
121
121
|
id: INSERT_CODE_CELL_BELOW_AND_FOCUS_CONTAINER_COMMAND_ID,
|
|
122
|
-
title: ( localize(
|
|
122
|
+
title: ( localize(9739, "Insert Code Cell Below and Focus Container"))
|
|
123
123
|
}, CellKind.Code, "below", false);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -128,7 +128,7 @@ registerAction2(class InsertMarkdownCellAboveAction extends InsertCellCommand {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: INSERT_MARKDOWN_CELL_ABOVE_COMMAND_ID,
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(9740, "Insert Markdown Cell Above")),
|
|
132
132
|
menu: {
|
|
133
133
|
id: MenuId.NotebookCellInsert,
|
|
134
134
|
order: 2
|
|
@@ -140,7 +140,7 @@ registerAction2(class InsertMarkdownCellBelowAction extends InsertCellCommand {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
143
|
-
title: ( localize(
|
|
143
|
+
title: ( localize(9741, "Insert Markdown Cell Below")),
|
|
144
144
|
menu: {
|
|
145
145
|
id: MenuId.NotebookCellInsert,
|
|
146
146
|
order: 3
|
|
@@ -152,7 +152,7 @@ registerAction2(class InsertCodeCellAtTopAction extends NotebookAction {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
155
|
-
title: ( localize(
|
|
155
|
+
title: ( localize(9742, "Add Code Cell At Top")),
|
|
156
156
|
f1: false
|
|
157
157
|
});
|
|
158
158
|
}
|
|
@@ -184,7 +184,7 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
184
184
|
constructor() {
|
|
185
185
|
super({
|
|
186
186
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
187
|
-
title: ( localize(
|
|
187
|
+
title: ( localize(9743, "Add Markdown Cell At Top")),
|
|
188
188
|
f1: false
|
|
189
189
|
});
|
|
190
190
|
}
|
|
@@ -215,8 +215,8 @@ registerAction2(class InsertMarkdownCellAtTopAction extends NotebookAction {
|
|
|
215
215
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
216
216
|
command: {
|
|
217
217
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
218
|
-
title: "$(add) " + ( localize(
|
|
219
|
-
tooltip: ( localize(
|
|
218
|
+
title: "$(add) " + ( localize(9744, "Code")),
|
|
219
|
+
tooltip: ( localize(9745, "Add Code Cell"))
|
|
220
220
|
},
|
|
221
221
|
order: 0,
|
|
222
222
|
group: "inline",
|
|
@@ -225,9 +225,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
|
225
225
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
226
226
|
command: {
|
|
227
227
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
228
|
-
title: ( localize(
|
|
228
|
+
title: ( localize(9746, "Add Code")),
|
|
229
229
|
icon: Codicon.add,
|
|
230
|
-
tooltip: ( localize(
|
|
230
|
+
tooltip: ( localize(9745, "Add Code Cell"))
|
|
231
231
|
},
|
|
232
232
|
order: 0,
|
|
233
233
|
group: "inline",
|
|
@@ -237,8 +237,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
237
237
|
command: {
|
|
238
238
|
id: INSERT_CODE_CELL_BELOW_COMMAND_ID,
|
|
239
239
|
icon: Codicon.add,
|
|
240
|
-
title: ( localize(
|
|
241
|
-
tooltip: ( localize(
|
|
240
|
+
title: ( localize(9747, "Code")),
|
|
241
|
+
tooltip: ( localize(9745, "Add Code Cell"))
|
|
242
242
|
},
|
|
243
243
|
order: -5,
|
|
244
244
|
group: "navigation/add",
|
|
@@ -247,8 +247,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
247
247
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
248
248
|
command: {
|
|
249
249
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
250
|
-
title: "$(add) " + ( localize(
|
|
251
|
-
tooltip: ( localize(
|
|
250
|
+
title: "$(add) " + ( localize(9744, "Code")),
|
|
251
|
+
tooltip: ( localize(9745, "Add Code Cell"))
|
|
252
252
|
},
|
|
253
253
|
order: 0,
|
|
254
254
|
group: "inline",
|
|
@@ -257,9 +257,9 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
257
257
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
258
258
|
command: {
|
|
259
259
|
id: INSERT_CODE_CELL_AT_TOP_COMMAND_ID,
|
|
260
|
-
title: ( localize(
|
|
260
|
+
title: ( localize(9748, "Add Code")),
|
|
261
261
|
icon: Codicon.add,
|
|
262
|
-
tooltip: ( localize(
|
|
262
|
+
tooltip: ( localize(9745, "Add Code Cell"))
|
|
263
263
|
},
|
|
264
264
|
order: 0,
|
|
265
265
|
group: "inline",
|
|
@@ -268,8 +268,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
|
268
268
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellBetween, {
|
|
269
269
|
command: {
|
|
270
270
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
271
|
-
title: "$(add) " + ( localize(
|
|
272
|
-
tooltip: ( localize(
|
|
271
|
+
title: "$(add) " + ( localize(9749, "Markdown")),
|
|
272
|
+
tooltip: ( localize(9750, "Add Markdown Cell"))
|
|
273
273
|
},
|
|
274
274
|
order: 1,
|
|
275
275
|
group: "inline",
|
|
@@ -279,8 +279,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
279
279
|
command: {
|
|
280
280
|
id: INSERT_MARKDOWN_CELL_BELOW_COMMAND_ID,
|
|
281
281
|
icon: Codicon.add,
|
|
282
|
-
title: ( localize(
|
|
283
|
-
tooltip: ( localize(
|
|
282
|
+
title: ( localize(9751, "Markdown")),
|
|
283
|
+
tooltip: ( localize(9750, "Add Markdown Cell"))
|
|
284
284
|
},
|
|
285
285
|
order: -5,
|
|
286
286
|
group: "navigation/add",
|
|
@@ -289,8 +289,8 @@ MenuRegistry.appendMenuItem(MenuId.NotebookToolbar, {
|
|
|
289
289
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellListTop, {
|
|
290
290
|
command: {
|
|
291
291
|
id: INSERT_MARKDOWN_CELL_AT_TOP_COMMAND_ID,
|
|
292
|
-
title: "$(add) " + ( localize(
|
|
293
|
-
tooltip: ( localize(
|
|
292
|
+
title: "$(add) " + ( localize(9749, "Markdown")),
|
|
293
|
+
tooltip: ( localize(9750, "Add Markdown Cell"))
|
|
294
294
|
},
|
|
295
295
|
order: 1,
|
|
296
296
|
group: "inline",
|
|
@@ -61,7 +61,7 @@ class CellDiffPlaceholderElement extends Disposable {
|
|
|
61
61
|
constructor(placeholder, templateData) {
|
|
62
62
|
super();
|
|
63
63
|
templateData.body.classList.remove("left", "right", "full");
|
|
64
|
-
const text = (placeholder.hiddenCells.length === 1) ? ( localize(
|
|
64
|
+
const text = (placeholder.hiddenCells.length === 1) ? ( localize(9787, "{0} hidden cell", placeholder.hiddenCells.length)) : ( localize(9788, "{0} hidden cells", placeholder.hiddenCells.length));
|
|
65
65
|
templateData.placeholder.innerText = text;
|
|
66
66
|
this._register(addDisposableListener(templateData.placeholder, "dblclick", e => {
|
|
67
67
|
if (e.button !== 0) {
|
|
@@ -1902,7 +1902,7 @@ class CollapsedCellOverlayWidget extends Disposable {
|
|
|
1902
1902
|
display: "flex"
|
|
1903
1903
|
}
|
|
1904
1904
|
}, [$("a", {
|
|
1905
|
-
title: ( localize(
|
|
1905
|
+
title: ( localize(9789, "Show Unchanged Cells")),
|
|
1906
1906
|
role: "button",
|
|
1907
1907
|
onclick: () => {
|
|
1908
1908
|
this._action.fire();
|
|
@@ -1935,7 +1935,7 @@ class UnchangedCellOverlayWidget extends Disposable {
|
|
|
1935
1935
|
display: "flex"
|
|
1936
1936
|
}
|
|
1937
1937
|
}, [$("a", {
|
|
1938
|
-
title: ( localize(
|
|
1938
|
+
title: ( localize(9790, "Hide Unchanged Cells")),
|
|
1939
1939
|
role: "button",
|
|
1940
1940
|
onclick: () => {
|
|
1941
1941
|
this._action.fire();
|
|
@@ -48,7 +48,7 @@ class OutputElement extends Disposable {
|
|
|
48
48
|
mimeTypePicker.classList.add(...ThemeIcon.asClassNameArray(mimetypeIcon));
|
|
49
49
|
mimeTypePicker.tabIndex = 0;
|
|
50
50
|
mimeTypePicker.title = ( localize(
|
|
51
|
-
|
|
51
|
+
9791,
|
|
52
52
|
"Choose a different output mimetype, available mimetypes: {0}",
|
|
53
53
|
( mimeTypes.map(mimeType => mimeType.mimeType)).join(", ")
|
|
54
54
|
));
|
|
@@ -105,13 +105,13 @@ class OutputElement extends Disposable {
|
|
|
105
105
|
}
|
|
106
106
|
_renderMissingRenderer(viewModel, preferredMimeType) {
|
|
107
107
|
if (!viewModel.model.outputs.length) {
|
|
108
|
-
return this._renderMessage(viewModel, ( localize(
|
|
108
|
+
return this._renderMessage(viewModel, ( localize(9792, "Cell has no output")));
|
|
109
109
|
}
|
|
110
110
|
if (!preferredMimeType) {
|
|
111
111
|
const mimeTypes = ( viewModel.model.outputs.map(op => op.mime));
|
|
112
112
|
const mimeTypesMessage = mimeTypes.join(", ");
|
|
113
113
|
return this._renderMessage(viewModel, ( localize(
|
|
114
|
-
|
|
114
|
+
9793,
|
|
115
115
|
"No renderer could be found for output. It has the following mimetypes: {0}",
|
|
116
116
|
mimeTypesMessage
|
|
117
117
|
)));
|
|
@@ -154,16 +154,16 @@ class OutputElement extends Disposable {
|
|
|
154
154
|
index: index,
|
|
155
155
|
picked: index === currIndex,
|
|
156
156
|
detail: this.generateRendererInfo(mimeType.rendererId),
|
|
157
|
-
description: index === currIndex ? ( localize(
|
|
157
|
+
description: index === currIndex ? ( localize(9794, "Currently Active")) : undefined
|
|
158
158
|
})));
|
|
159
159
|
const disposables = ( new DisposableStore());
|
|
160
160
|
const picker = disposables.add(this._quickInputService.createQuickPick());
|
|
161
161
|
picker.items = items;
|
|
162
162
|
picker.activeItems = items.filter(item => !!item.picked);
|
|
163
163
|
picker.placeholder = items.length !== mimeTypes.length ? ( localize(
|
|
164
|
-
|
|
164
|
+
9795,
|
|
165
165
|
"Select mimetype to render for current output. Rich mimetypes are available only when the notebook is trusted"
|
|
166
|
-
)) : ( localize(
|
|
166
|
+
)) : ( localize(9796, "Select mimetype to render for current output"));
|
|
167
167
|
const pick = await ( new Promise(resolve => {
|
|
168
168
|
disposables.add(picker.onDidAccept(() => {
|
|
169
169
|
resolve(
|
|
@@ -195,7 +195,7 @@ class OutputElement extends Disposable {
|
|
|
195
195
|
const displayName = renderInfo.displayName !== "" ? renderInfo.displayName : renderInfo.id;
|
|
196
196
|
return `${displayName} (${renderInfo.extensionId.value})`;
|
|
197
197
|
}
|
|
198
|
-
return localize(
|
|
198
|
+
return localize(9797, "built-in");
|
|
199
199
|
}
|
|
200
200
|
getCellOutputCurrentIndex() {
|
|
201
201
|
return this._diffElementViewModel.getNestedCellViewModel(this._diffSide).outputs.indexOf(this.output.model);
|
|
@@ -14,15 +14,15 @@ const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY = "notebook.diffEditor.cell.ignor
|
|
|
14
14
|
const NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE = ( new RawContextKey(NOTEBOOK_DIFF_CELL_IGNORE_WHITESPACE_KEY, false));
|
|
15
15
|
const NOTEBOOK_DIFF_CELL_PROPERTY = ( new RawContextKey("notebook.diffEditor.cell.property.changed", false));
|
|
16
16
|
const NOTEBOOK_DIFF_CELL_PROPERTY_EXPANDED = ( new RawContextKey("notebook.diffEditor.cell.property.expanded", false));
|
|
17
|
-
const NOTEBOOK_DIFF_CELLS_COLLAPSED = ( new RawContextKey("notebook.diffEditor.allCollapsed", undefined, ( localize(
|
|
18
|
-
const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS = ( new RawContextKey("notebook.diffEditor.hasUnchangedCells", undefined, ( localize(
|
|
19
|
-
const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN = ( new RawContextKey("notebook.diffEditor.unchangedCellsAreHidden", undefined, ( localize(
|
|
17
|
+
const NOTEBOOK_DIFF_CELLS_COLLAPSED = ( new RawContextKey("notebook.diffEditor.allCollapsed", undefined, ( localize(9819, "Whether all cells in notebook diff editor are collapsed"))));
|
|
18
|
+
const NOTEBOOK_DIFF_HAS_UNCHANGED_CELLS = ( new RawContextKey("notebook.diffEditor.hasUnchangedCells", undefined, ( localize(9820, "Whether there are unchanged cells in the notebook diff editor"))));
|
|
19
|
+
const NOTEBOOK_DIFF_UNCHANGED_CELLS_HIDDEN = ( new RawContextKey("notebook.diffEditor.unchangedCellsAreHidden", undefined, ( localize(9821, "Whether the unchanged cells in the notebook diff editor are hidden"))));
|
|
20
20
|
const NOTEBOOK_DIFF_ITEM_KIND = ( new RawContextKey("notebook.diffEditor.item.kind", undefined, ( localize(
|
|
21
|
-
|
|
21
|
+
9822,
|
|
22
22
|
"The kind of item in the notebook diff editor, Cell, Metadata or Output"
|
|
23
23
|
))));
|
|
24
24
|
const NOTEBOOK_DIFF_ITEM_DIFF_STATE = ( new RawContextKey("notebook.diffEditor.item.state", undefined, ( localize(
|
|
25
|
-
|
|
25
|
+
9823,
|
|
26
26
|
"The diff state of item in the notebook diff editor, delete, insert, modified or unchanged"
|
|
27
27
|
))));
|
|
28
28
|
|
|
@@ -82,7 +82,7 @@ let CellDiffPlaceholderRenderer = class CellDiffPlaceholderRenderer {
|
|
|
82
82
|
const marginOverlay = ( new CollapsedCellOverlayWidget(body));
|
|
83
83
|
const contents = append(body, $(".contents"));
|
|
84
84
|
const placeholder = append(contents, $("span.text", {
|
|
85
|
-
title: ( localize(
|
|
85
|
+
title: ( localize(9824, "Double click to show"))
|
|
86
86
|
}));
|
|
87
87
|
return {
|
|
88
88
|
body,
|
|
@@ -92,18 +92,18 @@ let NotebookAccessibilityProvider = class NotebookAccessibilityProvider extends
|
|
|
92
92
|
return this.createItemLabel(executionLabel, element.cellKind);
|
|
93
93
|
}
|
|
94
94
|
get widgetAriaLabelName() {
|
|
95
|
-
return this.isReplHistory ? ( localize(
|
|
95
|
+
return this.isReplHistory ? ( localize(9906, "REPL Editor History")) : ( localize(9907, "Notebook"));
|
|
96
96
|
}
|
|
97
97
|
getWidgetAriaLabel() {
|
|
98
98
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
99
99
|
if (this.configurationService.getValue(this.verbositySettingId)) {
|
|
100
100
|
return keybinding ? ( localize(
|
|
101
|
-
|
|
101
|
+
9908,
|
|
102
102
|
"{0}\nUse {1} for accessibility help",
|
|
103
103
|
this.widgetAriaLabelName,
|
|
104
104
|
keybinding
|
|
105
105
|
)) : ( localize(
|
|
106
|
-
|
|
106
|
+
9909,
|
|
107
107
|
"{0}\nRun the Open Accessibility Help command for more information",
|
|
108
108
|
this.widgetAriaLabelName
|
|
109
109
|
));
|
|
@@ -244,7 +244,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
244
244
|
const knownProvider = this._notebookService.getViewTypeProvider(input.viewType);
|
|
245
245
|
if (!knownProvider) {
|
|
246
246
|
throw ( new Error(( localize(
|
|
247
|
-
|
|
247
|
+
9910,
|
|
248
248
|
"Cannot open resource with notebook editor type '{0}', please check if you have the right extension installed and enabled.",
|
|
249
249
|
input.viewType
|
|
250
250
|
))));
|
|
@@ -252,12 +252,12 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
252
252
|
await this._extensionsWorkbenchService.whenInitialized;
|
|
253
253
|
const extensionInfo = this._extensionsWorkbenchService.local.find(e => e.identifier.id === knownProvider);
|
|
254
254
|
throw createEditorOpenError(( new Error(( localize(
|
|
255
|
-
|
|
255
|
+
9911,
|
|
256
256
|
"Cannot open resource with notebook editor type '{0}', please check if you have the right extension installed and enabled.",
|
|
257
257
|
input.viewType
|
|
258
258
|
)))), [toAction({
|
|
259
259
|
id: "workbench.notebook.action.installOrEnableMissing",
|
|
260
|
-
label: extensionInfo ? ( localize(
|
|
260
|
+
label: extensionInfo ? ( localize(9912, "Enable extension for '{0}'", input.viewType)) : ( localize(9913, "Install extension for '{0}'", input.viewType)),
|
|
261
261
|
run: async () => {
|
|
262
262
|
const d = this._notebookService.onAddViewType(viewType => {
|
|
263
263
|
if (viewType === input.viewType) {
|
|
@@ -284,7 +284,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
284
284
|
}
|
|
285
285
|
}), toAction({
|
|
286
286
|
id: "workbench.notebook.action.openAsText",
|
|
287
|
-
label: ( localize(
|
|
287
|
+
label: ( localize(9914, "Open As Text")),
|
|
288
288
|
run: async () => {
|
|
289
289
|
const backup = await this._workingCopyBackupService.resolve({
|
|
290
290
|
resource: input.resource,
|
|
@@ -348,13 +348,13 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
348
348
|
let message;
|
|
349
349
|
if (e instanceof TooLargeFileOperationError) {
|
|
350
350
|
message = ( localize(
|
|
351
|
-
|
|
351
|
+
9915,
|
|
352
352
|
"The notebook is not displayed in the notebook editor because it is very large ({0}).",
|
|
353
353
|
ByteSize.formatSize(e.size)
|
|
354
354
|
));
|
|
355
355
|
} else {
|
|
356
356
|
message = ( localize(
|
|
357
|
-
|
|
357
|
+
9916,
|
|
358
358
|
"The notebook is not displayed in the notebook editor because it is very large."
|
|
359
359
|
));
|
|
360
360
|
}
|
|
@@ -362,7 +362,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
362
362
|
}
|
|
363
363
|
const error = createEditorOpenError(e instanceof Error ? e : ( new Error((e ? e.message : ""))), [toAction({
|
|
364
364
|
id: "workbench.notebook.action.openInTextEditor",
|
|
365
|
-
label: ( localize(
|
|
365
|
+
label: ( localize(9917, "Open in Text Editor")),
|
|
366
366
|
run: async () => {
|
|
367
367
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
368
368
|
if (!activeEditorPane) {
|