@codingame/monaco-vscode-api 8.0.1 → 8.0.2
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/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.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/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
- 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/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLogService.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/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/editorTabsControl.js +2 -2
- 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/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- 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/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +127 -127
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +14 -14
- 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/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- 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/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- 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/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/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- 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/notebookEditor.js +8 -8
- 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/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- 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/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +16 -16
- 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/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/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/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
2
2
|
import { localize } from '../../../../nls.js';
|
|
3
3
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
4
|
-
const extensionsViewIcon = registerIcon('extensions-view-icon', Codicon.extensions, ( localize(
|
|
5
|
-
const manageExtensionIcon = registerIcon('extensions-manage', Codicon.gear, ( localize(
|
|
4
|
+
const extensionsViewIcon = registerIcon('extensions-view-icon', Codicon.extensions, ( localize(9483, 'View icon of the extensions view.')));
|
|
5
|
+
const manageExtensionIcon = registerIcon('extensions-manage', Codicon.gear, ( localize(9484, 'Icon for the \'Manage\' action in the extensions view.')));
|
|
6
6
|
const clearSearchResultsIcon = registerIcon('extensions-clear-search-results', Codicon.clearAll, ( localize(
|
|
7
|
-
|
|
7
|
+
9485,
|
|
8
8
|
'Icon for the \'Clear Search Result\' action in the extensions view.'
|
|
9
9
|
)));
|
|
10
|
-
const refreshIcon = registerIcon('extensions-refresh', Codicon.refresh, ( localize(
|
|
11
|
-
const filterIcon = registerIcon('extensions-filter', Codicon.filter, ( localize(
|
|
10
|
+
const refreshIcon = registerIcon('extensions-refresh', Codicon.refresh, ( localize(9486, 'Icon for the \'Refresh\' action in the extensions view.')));
|
|
11
|
+
const filterIcon = registerIcon('extensions-filter', Codicon.filter, ( localize(9487, 'Icon for the \'Filter\' action in the extensions view.')));
|
|
12
12
|
const installLocalInRemoteIcon = registerIcon('extensions-install-local-in-remote', Codicon.cloudDownload, ( localize(
|
|
13
|
-
|
|
13
|
+
9488,
|
|
14
14
|
'Icon for the \'Install Local Extension in Remote\' action in the extensions view.'
|
|
15
15
|
)));
|
|
16
16
|
const installWorkspaceRecommendedIcon = registerIcon('extensions-install-workspace-recommended', Codicon.cloudDownload, ( localize(
|
|
17
|
-
|
|
17
|
+
9489,
|
|
18
18
|
'Icon for the \'Install Workspace Recommended Extensions\' action in the extensions view.'
|
|
19
19
|
)));
|
|
20
20
|
const configureRecommendedIcon = registerIcon('extensions-configure-recommended', Codicon.pencil, ( localize(
|
|
21
|
-
|
|
21
|
+
9490,
|
|
22
22
|
'Icon for the \'Configure Recommended Extensions\' action in the extensions view.'
|
|
23
23
|
)));
|
|
24
|
-
const syncEnabledIcon = registerIcon('extensions-sync-enabled', Codicon.sync, ( localize(
|
|
25
|
-
const syncIgnoredIcon = registerIcon('extensions-sync-ignored', Codicon.syncIgnored, ( localize(
|
|
24
|
+
const syncEnabledIcon = registerIcon('extensions-sync-enabled', Codicon.sync, ( localize(9491, 'Icon to indicate that an extension is synced.')));
|
|
25
|
+
const syncIgnoredIcon = registerIcon('extensions-sync-ignored', Codicon.syncIgnored, ( localize(9492, 'Icon to indicate that an extension is ignored when syncing.')));
|
|
26
26
|
const remoteIcon = registerIcon('extensions-remote', Codicon.remote, ( localize(
|
|
27
|
-
|
|
27
|
+
9493,
|
|
28
28
|
'Icon to indicate that an extension is remote in the extensions view and editor.'
|
|
29
29
|
)));
|
|
30
30
|
const installCountIcon = registerIcon('extensions-install-count', Codicon.cloudDownload, ( localize(
|
|
31
|
-
|
|
31
|
+
9494,
|
|
32
32
|
'Icon shown along with the install count in the extensions view and editor.'
|
|
33
33
|
)));
|
|
34
34
|
const ratingIcon = registerIcon('extensions-rating', Codicon.star, ( localize(
|
|
35
|
-
|
|
35
|
+
9495,
|
|
36
36
|
'Icon shown along with the rating in the extensions view and editor.'
|
|
37
37
|
)));
|
|
38
38
|
const verifiedPublisherIcon = registerIcon('extensions-verified-publisher', Codicon.verifiedFilled, ( localize(
|
|
39
|
-
|
|
39
|
+
9496,
|
|
40
40
|
'Icon used for the verified extension publisher in the extensions view and editor.'
|
|
41
41
|
)));
|
|
42
42
|
const preReleaseIcon = registerIcon('extensions-pre-release', Codicon.versions, ( localize(
|
|
43
|
-
|
|
43
|
+
9497,
|
|
44
44
|
'Icon shown for extensions having pre-release versions in extensions view and editor.'
|
|
45
45
|
)));
|
|
46
46
|
const sponsorIcon = registerIcon('extensions-sponsor', Codicon.heartFilled, ( localize(
|
|
47
|
-
|
|
47
|
+
9498,
|
|
48
48
|
'Icon used for sponsoring extensions in the extensions view and editor.'
|
|
49
49
|
)));
|
|
50
|
-
const starFullIcon = registerIcon('extensions-star-full', Codicon.starFull, ( localize(
|
|
51
|
-
const starHalfIcon = registerIcon('extensions-star-half', Codicon.starHalf, ( localize(
|
|
52
|
-
const starEmptyIcon = registerIcon('extensions-star-empty', Codicon.starEmpty, ( localize(
|
|
53
|
-
const errorIcon = registerIcon('extensions-error-message', Codicon.error, ( localize(
|
|
54
|
-
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(
|
|
55
|
-
const infoIcon = registerIcon('extensions-info-message', Codicon.info, ( localize(
|
|
56
|
-
const trustIcon = registerIcon('extension-workspace-trust', Codicon.shield, ( localize(
|
|
57
|
-
const activationTimeIcon = registerIcon('extension-activation-time', Codicon.history, ( localize(
|
|
50
|
+
const starFullIcon = registerIcon('extensions-star-full', Codicon.starFull, ( localize(9499, 'Full star icon used for the rating in the extensions editor.')));
|
|
51
|
+
const starHalfIcon = registerIcon('extensions-star-half', Codicon.starHalf, ( localize(9500, 'Half star icon used for the rating in the extensions editor.')));
|
|
52
|
+
const starEmptyIcon = registerIcon('extensions-star-empty', Codicon.starEmpty, ( localize(9501, 'Empty star icon used for the rating in the extensions editor.')));
|
|
53
|
+
const errorIcon = registerIcon('extensions-error-message', Codicon.error, ( localize(9502, 'Icon shown with a error message in the extensions editor.')));
|
|
54
|
+
const warningIcon = registerIcon('extensions-warning-message', Codicon.warning, ( localize(9503, 'Icon shown with a warning message in the extensions editor.')));
|
|
55
|
+
const infoIcon = registerIcon('extensions-info-message', Codicon.info, ( localize(9504, 'Icon shown with an info message in the extensions editor.')));
|
|
56
|
+
const trustIcon = registerIcon('extension-workspace-trust', Codicon.shield, ( localize(9505, 'Icon shown with a workspace trust message in the extension editor.')));
|
|
57
|
+
const activationTimeIcon = registerIcon('extension-activation-time', Codicon.history, ( localize(9506, 'Icon shown with a activation time message in the extension editor.')));
|
|
58
58
|
export { activationTimeIcon, clearSearchResultsIcon, configureRecommendedIcon, errorIcon, extensionsViewIcon, filterIcon, infoIcon, installCountIcon, installLocalInRemoteIcon, installWorkspaceRecommendedIcon, manageExtensionIcon, preReleaseIcon, ratingIcon, refreshIcon, remoteIcon, sponsorIcon, starEmptyIcon, starFullIcon, starHalfIcon, syncEnabledIcon, syncIgnoredIcon, trustIcon, verifiedPublisherIcon, warningIcon };
|
|
@@ -6,31 +6,31 @@ const ExtensionsConfigurationSchema = {
|
|
|
6
6
|
allowComments: true,
|
|
7
7
|
allowTrailingCommas: true,
|
|
8
8
|
type: 'object',
|
|
9
|
-
title: ( localize(
|
|
9
|
+
title: ( localize(9450, "Extensions")),
|
|
10
10
|
additionalProperties: false,
|
|
11
11
|
properties: {
|
|
12
12
|
recommendations: {
|
|
13
13
|
type: 'array',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
9451,
|
|
16
16
|
"List of extensions which should be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."
|
|
17
17
|
)),
|
|
18
18
|
items: {
|
|
19
19
|
type: 'string',
|
|
20
20
|
pattern: EXTENSION_IDENTIFIER_PATTERN,
|
|
21
|
-
errorMessage: ( localize(
|
|
21
|
+
errorMessage: ( localize(9452, "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'."))
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
unwantedRecommendations: {
|
|
25
25
|
type: 'array',
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
9453,
|
|
28
28
|
"List of extensions recommended by VS Code that should not be recommended for users of this workspace. The identifier of an extension is always '${publisher}.${name}'. For example: 'vscode.csharp'."
|
|
29
29
|
)),
|
|
30
30
|
items: {
|
|
31
31
|
type: 'string',
|
|
32
32
|
pattern: EXTENSION_IDENTIFIER_PATTERN,
|
|
33
|
-
errorMessage: ( localize(
|
|
33
|
+
errorMessage: ( localize(9452, "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'."))
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
}
|
|
@@ -7,7 +7,7 @@ import { areSameExtensions } from '../../../../platform/extensionManagement/comm
|
|
|
7
7
|
import { join } from '../../../../base/common/path.js';
|
|
8
8
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
9
9
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
10
|
-
const ExtensionEditorIcon = registerIcon('extensions-editor-label-icon', Codicon.extensions, ( localize(
|
|
10
|
+
const ExtensionEditorIcon = registerIcon('extensions-editor-label-icon', Codicon.extensions, ( localize(7574, 'Icon of the extensions editor label.')));
|
|
11
11
|
class ExtensionsInput extends EditorInput {
|
|
12
12
|
static { this.ID = 'workbench.extensions.input2'; }
|
|
13
13
|
get typeId() {
|
|
@@ -30,7 +30,7 @@ class ExtensionsInput extends EditorInput {
|
|
|
30
30
|
}
|
|
31
31
|
get extension() { return this._extension; }
|
|
32
32
|
getName() {
|
|
33
|
-
return ( localize(
|
|
33
|
+
return ( localize(7575, "Extension: {0}", this._extension.displayName));
|
|
34
34
|
}
|
|
35
35
|
getIcon() {
|
|
36
36
|
return ExtensionEditorIcon;
|
|
@@ -59,7 +59,7 @@ let BinaryFileEditor = class BinaryFileEditor extends BaseBinaryResourceEditor {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
getTitle() {
|
|
62
|
-
return this.input ? this.input.getName() : ( localize(
|
|
62
|
+
return this.input ? this.input.getName() : ( localize(9779, "Binary File Viewer"));
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
BinaryFileEditor = BinaryFileEditor_1 = ( (__decorate([
|
|
@@ -65,7 +65,7 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
65
65
|
if (this.input) {
|
|
66
66
|
return this.input.getName();
|
|
67
67
|
}
|
|
68
|
-
return ( localize(
|
|
68
|
+
return ( localize(9780, "Text File Editor"));
|
|
69
69
|
}
|
|
70
70
|
get input() {
|
|
71
71
|
return this._input;
|
|
@@ -113,20 +113,20 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
113
113
|
if (error.fileOperationResult === FileOperationResult.FILE_IS_DIRECTORY) {
|
|
114
114
|
const actions = [];
|
|
115
115
|
actions.push(toAction({
|
|
116
|
-
id: 'workbench.files.action.openFolder', label: ( localize(
|
|
116
|
+
id: 'workbench.files.action.openFolder', label: ( localize(9781, "Open Folder")), run: async () => {
|
|
117
117
|
return this.hostService.openWindow([{ folderUri: input.resource }], { forceNewWindow: true });
|
|
118
118
|
}
|
|
119
119
|
}));
|
|
120
120
|
if (this.contextService.isInsideWorkspace(input.preferredResource)) {
|
|
121
121
|
actions.push(toAction({
|
|
122
|
-
id: 'workbench.files.action.reveal', label: ( localize(
|
|
122
|
+
id: 'workbench.files.action.reveal', label: ( localize(9782, "Reveal Folder")), run: async () => {
|
|
123
123
|
await this.paneCompositeService.openPaneComposite(VIEWLET_ID, ViewContainerLocation.Sidebar, true);
|
|
124
124
|
return this.explorerService.select(input.preferredResource, true);
|
|
125
125
|
}
|
|
126
126
|
}));
|
|
127
127
|
}
|
|
128
128
|
throw createEditorOpenError(localize(
|
|
129
|
-
|
|
129
|
+
9783,
|
|
130
130
|
"The file is not displayed in the text editor because it is a directory."
|
|
131
131
|
), actions, { forceMessage: true });
|
|
132
132
|
}
|
|
@@ -134,14 +134,14 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
134
134
|
let message;
|
|
135
135
|
if (error instanceof TooLargeFileOperationError) {
|
|
136
136
|
message = ( localize(
|
|
137
|
-
|
|
137
|
+
9784,
|
|
138
138
|
"The file is not displayed in the text editor because it is very large ({0}).",
|
|
139
139
|
ByteSize.formatSize(error.size)
|
|
140
140
|
));
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
143
|
message = ( localize(
|
|
144
|
-
|
|
144
|
+
9785,
|
|
145
145
|
"The file is not displayed in the text editor because it is very large."
|
|
146
146
|
));
|
|
147
147
|
}
|
|
@@ -150,9 +150,9 @@ let TextFileEditor = class TextFileEditor extends AbstractTextCodeEditor {
|
|
|
150
150
|
if (error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND &&
|
|
151
151
|
!this.filesConfigurationService.isReadonly(input.preferredResource) &&
|
|
152
152
|
(await this.pathService.hasValidBasename(input.preferredResource))) {
|
|
153
|
-
const fileNotFoundError = createEditorOpenError(( (new FileOperationError(( localize(
|
|
153
|
+
const fileNotFoundError = createEditorOpenError(( (new FileOperationError(( localize(9786, "The editor could not be opened because the file was not found.")), FileOperationResult.FILE_NOT_FOUND))), [
|
|
154
154
|
toAction({
|
|
155
|
-
id: 'workbench.files.action.createMissingFile', label: ( localize(
|
|
155
|
+
id: 'workbench.files.action.createMissingFile', label: ( localize(9787, "Create File")), run: async () => {
|
|
156
156
|
await this.textFileService.create([{ resource: input.preferredResource }]);
|
|
157
157
|
return this.editorService.openEditor({
|
|
158
158
|
resource: input.preferredResource,
|
|
@@ -39,10 +39,10 @@ let FileUriLabelContribution = class FileUriLabelContribution {
|
|
|
39
39
|
FileUriLabelContribution = ( (__decorate([
|
|
40
40
|
( (__param(0, ILabelService)))
|
|
41
41
|
], FileUriLabelContribution)));
|
|
42
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localize(
|
|
42
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextFileEditor, TextFileEditor.ID, ( localize(4389, "Text File Editor"))), [
|
|
43
43
|
( (new SyncDescriptor(FileEditorInput)))
|
|
44
44
|
]);
|
|
45
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localize(
|
|
45
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryFileEditor, BinaryFileEditor.ID, ( localize(4390, "Binary File Editor"))), [
|
|
46
46
|
( (new SyncDescriptor(FileEditorInput)))
|
|
47
47
|
]);
|
|
48
48
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(FILE_EDITOR_INPUT_ID, FileEditorInputSerializer);
|
|
@@ -58,10 +58,10 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
|
|
|
58
58
|
if (msg.indexOf('ENOSPC') >= 0) {
|
|
59
59
|
reason = 'ENOSPC';
|
|
60
60
|
this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
61
|
-
|
|
61
|
+
9788,
|
|
62
62
|
"Unable to watch for file changes. Please follow the instructions link to resolve this issue."
|
|
63
63
|
)), [{
|
|
64
|
-
label: ( localize(
|
|
64
|
+
label: ( localize(9789, "Instructions")),
|
|
65
65
|
run: () => this.openerService.open(( (URI.parse('https://go.microsoft.com/fwlink/?linkid=867693'))))
|
|
66
66
|
}], {
|
|
67
67
|
sticky: true,
|
|
@@ -71,10 +71,10 @@ let WorkspaceWatcher = class WorkspaceWatcher extends Disposable {
|
|
|
71
71
|
else if (msg.indexOf('EUNKNOWN') >= 0) {
|
|
72
72
|
reason = 'EUNKNOWN';
|
|
73
73
|
this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
74
|
-
|
|
74
|
+
9790,
|
|
75
75
|
"File changes watcher stopped unexpectedly. A reload of the window may enable the watcher again unless the workspace cannot be watched for file changes."
|
|
76
76
|
)), [{
|
|
77
|
-
label: ( localize(
|
|
77
|
+
label: ( localize(9791, "Reload")),
|
|
78
78
|
run: () => this.hostService.reload()
|
|
79
79
|
}], {
|
|
80
80
|
sticky: true,
|
|
@@ -35,7 +35,7 @@ let DirtyFilesIndicator = class DirtyFilesIndicator extends Disposable {
|
|
|
35
35
|
const dirtyCount = this.lastKnownDirtyCount = this.workingCopyService.dirtyCount;
|
|
36
36
|
if (dirtyCount > 0) {
|
|
37
37
|
this.badgeHandle.value = this.activityService.showViewContainerActivity(VIEWLET_ID, {
|
|
38
|
-
badge: ( (new NumberBadge(dirtyCount, num => num === 1 ? ( localize(
|
|
38
|
+
badge: ( (new NumberBadge(dirtyCount, num => num === 1 ? ( localize(9792, "1 unsaved file")) : ( localize(9793, "{0} unsaved files", dirtyCount))))),
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
@@ -30,8 +30,8 @@ let DefaultFoldingRangeProvider = class DefaultFoldingRangeProvider extends Disp
|
|
|
30
30
|
DefaultFoldingRangeProvider_1.extensionItemLabels.length = 0;
|
|
31
31
|
DefaultFoldingRangeProvider_1.extensionDescriptions.length = 0;
|
|
32
32
|
DefaultFoldingRangeProvider_1.extensionIds.push(null);
|
|
33
|
-
DefaultFoldingRangeProvider_1.extensionItemLabels.push(( localize(
|
|
34
|
-
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(
|
|
33
|
+
DefaultFoldingRangeProvider_1.extensionItemLabels.push(( localize(653, 'All')));
|
|
34
|
+
DefaultFoldingRangeProvider_1.extensionDescriptions.push(( localize(654, "All active folding range providers")));
|
|
35
35
|
const languageExtensions = [];
|
|
36
36
|
const otherExtensions = [];
|
|
37
37
|
for (const extension of this._extensionService.extensions) {
|
|
@@ -73,7 +73,7 @@ DefaultFoldingRangeProvider = DefaultFoldingRangeProvider_1 = ( (__decorate([
|
|
|
73
73
|
properties: {
|
|
74
74
|
[DefaultFoldingRangeProvider.configName]: {
|
|
75
75
|
description: ( localize(
|
|
76
|
-
|
|
76
|
+
655,
|
|
77
77
|
"Defines a default folding range provider that takes precedence over all other folding range providers. Must be the identifier of an extension contributing a folding range provider."
|
|
78
78
|
)),
|
|
79
79
|
type: ['string', 'null'],
|
|
@@ -22,7 +22,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
22
22
|
static { this.IsReading = ( (new RawContextKey(
|
|
23
23
|
'isReadingLineWithInlayHints',
|
|
24
24
|
false,
|
|
25
|
-
{ type: 'boolean', description: ( localize(
|
|
25
|
+
{ type: 'boolean', description: ( localize(656, "Whether the current line and its inlay hints are currently focused")) }
|
|
26
26
|
))); }
|
|
27
27
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
28
28
|
static get(editor) {
|
|
@@ -37,7 +37,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
37
37
|
this._ariaElement.style.position = 'fixed';
|
|
38
38
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
39
39
|
this._ariaElement.tabIndex = 0;
|
|
40
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
40
|
+
this._ariaElement.setAttribute('aria-description', ( localize(657, "Code with Inlay Hint Information")));
|
|
41
41
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
42
42
|
}
|
|
43
43
|
dispose() {
|
|
@@ -137,7 +137,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
137
137
|
constructor() {
|
|
138
138
|
super({
|
|
139
139
|
id: 'inlayHints.startReadingLineWithHint',
|
|
140
|
-
title: ( localize2(
|
|
140
|
+
title: ( localize2(658, "Read Line With Inline Hints")),
|
|
141
141
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
142
142
|
f1: true
|
|
143
143
|
});
|
|
@@ -151,7 +151,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(659, "Stop Inlay Hints Reading")),
|
|
155
155
|
precondition: InlayHintsAccessibility.IsReading,
|
|
156
156
|
f1: true,
|
|
157
157
|
keybinding: {
|
|
@@ -73,7 +73,7 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
|
|
|
73
73
|
return capabilities;
|
|
74
74
|
}
|
|
75
75
|
getName() {
|
|
76
|
-
return ( localize(
|
|
76
|
+
return ( localize(7630, "Merging: {0}", super.getName()));
|
|
77
77
|
}
|
|
78
78
|
async resolve() {
|
|
79
79
|
if (!this._inputModel) {
|
|
@@ -111,9 +111,9 @@ let MultiDiffEditorInput = class MultiDiffEditorInput extends EditorInput {
|
|
|
111
111
|
};
|
|
112
112
|
this._register(autorun((reader) => {
|
|
113
113
|
const resources = this.resources.read(reader);
|
|
114
|
-
const label = this.label ?? ( localize(
|
|
114
|
+
const label = this.label ?? ( localize(6140, "Multi Diff Editor"));
|
|
115
115
|
if (resources) {
|
|
116
|
-
this._name = label + ( localize(
|
|
116
|
+
this._name = label + ( localize(6141, " ({0} files)", resources.length));
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
119
119
|
this._name = label;
|
|
@@ -132,7 +132,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
132
132
|
return [{
|
|
133
133
|
text: `$(${successStateIcon.id})`,
|
|
134
134
|
color: themeColorFromId(cellStatusIconSuccess),
|
|
135
|
-
tooltip: ( localize(
|
|
135
|
+
tooltip: ( localize(8004, "Success")),
|
|
136
136
|
alignment: CellStatusbarAlignment.Left,
|
|
137
137
|
priority: Number.MAX_SAFE_INTEGER
|
|
138
138
|
}];
|
|
@@ -141,7 +141,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
141
141
|
return [{
|
|
142
142
|
text: `$(${errorStateIcon.id})`,
|
|
143
143
|
color: themeColorFromId(cellStatusIconError),
|
|
144
|
-
tooltip: ( localize(
|
|
144
|
+
tooltip: ( localize(8005, "Failed")),
|
|
145
145
|
alignment: CellStatusbarAlignment.Left,
|
|
146
146
|
priority: Number.MAX_SAFE_INTEGER
|
|
147
147
|
}];
|
|
@@ -149,7 +149,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
149
149
|
else if (state === NotebookCellExecutionState.Pending || state === NotebookCellExecutionState.Unconfirmed) {
|
|
150
150
|
return [{
|
|
151
151
|
text: `$(${pendingStateIcon.id})`,
|
|
152
|
-
tooltip: ( localize(
|
|
152
|
+
tooltip: ( localize(8006, "Pending")),
|
|
153
153
|
alignment: CellStatusbarAlignment.Left,
|
|
154
154
|
priority: Number.MAX_SAFE_INTEGER
|
|
155
155
|
}];
|
|
@@ -160,7 +160,7 @@ let ExecutionStateCellStatusBarItem = class ExecutionStateCellStatusBarItem exte
|
|
|
160
160
|
ThemeIcon.modify(executingStateIcon, 'spin');
|
|
161
161
|
return [{
|
|
162
162
|
text: `$(${icon.id})`,
|
|
163
|
-
tooltip: ( localize(
|
|
163
|
+
tooltip: ( localize(8007, "Executing")),
|
|
164
164
|
alignment: CellStatusbarAlignment.Left,
|
|
165
165
|
priority: Number.MAX_SAFE_INTEGER
|
|
166
166
|
}];
|
|
@@ -264,10 +264,10 @@ let TimerCellStatusBarItem = class TimerCellStatusBarItem extends Disposable {
|
|
|
264
264
|
}));
|
|
265
265
|
renderTimes += `- [${rendererInfo?.displayName ?? key}](command:workbench.action.openIssueReporter?${args}) ${formatCellDuration(renderDuration[key])}\n`;
|
|
266
266
|
}
|
|
267
|
-
renderTimes += `\n*${( localize(
|
|
267
|
+
renderTimes += `\n*${( localize(8008, "Use the links above to file an issue using the issue reporter."))}*\n`;
|
|
268
268
|
tooltip = {
|
|
269
269
|
value: ( localize(
|
|
270
|
-
|
|
270
|
+
8009,
|
|
271
271
|
"**Last Execution** {0}\n\n**Execution Time** {1}\n\n**Overhead Time** {2}\n\n**Render Times**\n\n{3}",
|
|
272
272
|
lastExecution,
|
|
273
273
|
formatCellDuration(executionDuration),
|
|
@@ -274,10 +274,10 @@ let NotebookFindWidget = class NotebookFindWidget extends SimpleFindReplaceWidge
|
|
|
274
274
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
275
275
|
if (label === NLS_NO_RESULTS) {
|
|
276
276
|
return searchString === ''
|
|
277
|
-
? ( localize(
|
|
278
|
-
: ( localize(
|
|
277
|
+
? ( localize(10104, "{0} found", label))
|
|
278
|
+
: ( localize(10105, "{0} found for '{1}'", label, searchString));
|
|
279
279
|
}
|
|
280
|
-
return ( localize(
|
|
280
|
+
return ( localize(10106, "{0} found for '{1}'", label, searchString));
|
|
281
281
|
}
|
|
282
282
|
dispose() {
|
|
283
283
|
this._notebookEditor?.removeClassName(FIND_SHOW_TRANSITION);
|
|
@@ -16,7 +16,7 @@ registerAction2(class ShowAllOutputsAction extends Action2 {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: 'notebook.cellOuput.showEmptyOutputs',
|
|
19
|
-
title: ( localize(
|
|
19
|
+
title: ( localize(7949, "Show empty outputs")),
|
|
20
20
|
menu: {
|
|
21
21
|
id: MenuId.NotebookOutputToolbar,
|
|
22
22
|
when: ( (ContextKeyExpr.and(NOTEBOOK_CELL_HAS_OUTPUTS, NOTEBOOK_CELL_HAS_HIDDEN_OUTPUTS)))
|
|
@@ -41,7 +41,7 @@ registerAction2(class CopyCellOutputAction extends Action2 {
|
|
|
41
41
|
constructor() {
|
|
42
42
|
super({
|
|
43
43
|
id: COPY_OUTPUT_COMMAND_ID,
|
|
44
|
-
title: ( localize(
|
|
44
|
+
title: ( localize(7950, "Copy Cell Output")),
|
|
45
45
|
menu: {
|
|
46
46
|
id: MenuId.NotebookOutputToolbar,
|
|
47
47
|
when: NOTEBOOK_CELL_HAS_OUTPUTS
|
|
@@ -116,7 +116,7 @@ registerAction2(class OpenCellOutputInEditorAction extends Action2 {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super({
|
|
118
118
|
id: OPEN_OUTPUT_COMMAND_ID,
|
|
119
|
-
title: ( localize(
|
|
119
|
+
title: ( localize(7951, "Open Cell Output in Text Editor")),
|
|
120
120
|
f1: false,
|
|
121
121
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
122
122
|
icon: copyIcon,
|
|
@@ -13,7 +13,7 @@ import { ITelemetryService } from '../../../../../platform/telemetry/common/tele
|
|
|
13
13
|
import { MarshalledId } from '../../../../../base/common/marshallingIds.js';
|
|
14
14
|
import { isEqual } from '../../../../../base/common/resources.js';
|
|
15
15
|
const SELECT_KERNEL_ID = '_notebook.selectKernel';
|
|
16
|
-
const NOTEBOOK_ACTIONS_CATEGORY = ( localize2(
|
|
16
|
+
const NOTEBOOK_ACTIONS_CATEGORY = ( localize2(5624, 'Notebook'));
|
|
17
17
|
const CELL_TITLE_CELL_GROUP_ID = 'inline/cell';
|
|
18
18
|
const CELL_TITLE_OUTPUT_GROUP_ID = 'inline/output';
|
|
19
19
|
const NOTEBOOK_EDITOR_WIDGET_ACTION_WEIGHT = KeybindingWeight.EditorContrib;
|
|
@@ -310,18 +310,18 @@ const cellExecutionArgs = [
|
|
|
310
310
|
];
|
|
311
311
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellTitle, {
|
|
312
312
|
submenu: MenuId.NotebookCellInsert,
|
|
313
|
-
title: ( localize(
|
|
313
|
+
title: ( localize(5625, "Insert Cell")),
|
|
314
314
|
group: CellOverflowToolbarGroups.Insert,
|
|
315
315
|
when: ( (NOTEBOOK_EDITOR_EDITABLE.isEqualTo(true)))
|
|
316
316
|
});
|
|
317
317
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
318
318
|
submenu: MenuId.NotebookCellTitle,
|
|
319
|
-
title: ( localize(
|
|
319
|
+
title: ( localize(5626, "Notebook Cell")),
|
|
320
320
|
group: CellOverflowToolbarGroups.Insert,
|
|
321
321
|
when: NOTEBOOK_EDITOR_FOCUSED
|
|
322
322
|
});
|
|
323
323
|
MenuRegistry.appendMenuItem(MenuId.NotebookCellTitle, {
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(5627, "Share")),
|
|
325
325
|
submenu: MenuId.EditorContextShare,
|
|
326
326
|
group: CellOverflowToolbarGroups.Share
|
|
327
327
|
});
|
|
@@ -108,8 +108,8 @@ class FoldingController extends Disposable {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
registerNotebookContribution(FoldingController.id, FoldingController);
|
|
111
|
-
const NOTEBOOK_FOLD_COMMAND_LABEL = ( localize(
|
|
112
|
-
const NOTEBOOK_UNFOLD_COMMAND_LABEL = ( localize2(
|
|
111
|
+
const NOTEBOOK_FOLD_COMMAND_LABEL = ( localize(7952, "Fold Cell"));
|
|
112
|
+
const NOTEBOOK_UNFOLD_COMMAND_LABEL = ( localize2(7953, "Unfold Cell"));
|
|
113
113
|
const FOLDING_COMMAND_ARGS = {
|
|
114
114
|
args: [{
|
|
115
115
|
isOptional: true,
|
|
@@ -139,7 +139,7 @@ registerAction2(class extends Action2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'notebook.fold',
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(7952, "Fold Cell")),
|
|
143
143
|
category: NOTEBOOK_ACTIONS_CATEGORY,
|
|
144
144
|
keybinding: {
|
|
145
145
|
when: ( (ContextKeyExpr.and(NOTEBOOK_EDITOR_FOCUSED, ContextKeyExpr.not(InputFocusedContextKey)))),
|
|
@@ -183,7 +183,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
183
183
|
const knownProvider = this._notebookService.getViewTypeProvider(input.viewType);
|
|
184
184
|
if (!knownProvider) {
|
|
185
185
|
throw ( (new Error(localize(
|
|
186
|
-
|
|
186
|
+
7863,
|
|
187
187
|
"Cannot open resource with notebook editor type '{0}', please check if you have the right extension installed and enabled.",
|
|
188
188
|
input.viewType
|
|
189
189
|
))));
|
|
@@ -191,14 +191,14 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
191
191
|
await this._extensionsWorkbenchService.whenInitialized;
|
|
192
192
|
const extensionInfo = this._extensionsWorkbenchService.local.find(e => e.identifier.id === knownProvider);
|
|
193
193
|
throw createEditorOpenError(( (new Error(localize(
|
|
194
|
-
|
|
194
|
+
7864,
|
|
195
195
|
"Cannot open resource with notebook editor type '{0}', please check if you have the right extension installed and enabled.",
|
|
196
196
|
input.viewType
|
|
197
197
|
)))), [
|
|
198
198
|
toAction({
|
|
199
199
|
id: 'workbench.notebook.action.installOrEnableMissing', label: extensionInfo
|
|
200
|
-
? localize(
|
|
201
|
-
: localize(
|
|
200
|
+
? localize(7865, "Enable extension for '{0}'", input.viewType)
|
|
201
|
+
: localize(7866, "Install extension for '{0}'", input.viewType),
|
|
202
202
|
run: async () => {
|
|
203
203
|
const d = this._notebookService.onAddViewType(viewType => {
|
|
204
204
|
if (viewType === input.viewType) {
|
|
@@ -222,7 +222,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
222
222
|
}
|
|
223
223
|
}),
|
|
224
224
|
toAction({
|
|
225
|
-
id: 'workbench.notebook.action.openAsText', label: localize(
|
|
225
|
+
id: 'workbench.notebook.action.openAsText', label: localize(7867, "Open As Text"), run: async () => {
|
|
226
226
|
const backup = await this._workingCopyBackupService.resolve({ resource: input.resource, typeId: NotebookWorkingCopyTypeIdentifier.create(input.viewType) });
|
|
227
227
|
if (backup) {
|
|
228
228
|
const contents = await streamToBuffer(backup.value);
|
|
@@ -265,14 +265,14 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
265
265
|
let message;
|
|
266
266
|
if (e instanceof TooLargeFileOperationError) {
|
|
267
267
|
message = ( localize(
|
|
268
|
-
|
|
268
|
+
7868,
|
|
269
269
|
"The notebook is not displayed in the notebook editor because it is very large ({0}).",
|
|
270
270
|
ByteSize.formatSize(e.size)
|
|
271
271
|
));
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
message = ( localize(
|
|
275
|
-
|
|
275
|
+
7869,
|
|
276
276
|
"The notebook is not displayed in the notebook editor because it is very large."
|
|
277
277
|
));
|
|
278
278
|
}
|
|
@@ -280,7 +280,7 @@ let NotebookEditor = class NotebookEditor extends EditorPane {
|
|
|
280
280
|
}
|
|
281
281
|
const error = createEditorOpenError(e instanceof Error ? e : ( (new Error((e ? e.message : '')))), [
|
|
282
282
|
toAction({
|
|
283
|
-
id: 'workbench.notebook.action.openInTextEditor', label: ( localize(
|
|
283
|
+
id: 'workbench.notebook.action.openInTextEditor', label: ( localize(7870, "Open in Text Editor")), run: async () => {
|
|
284
284
|
const activeEditorPane = this._editorService.activeEditorPane;
|
|
285
285
|
if (!activeEditorPane) {
|
|
286
286
|
return;
|