@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
|
@@ -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(9451, "Extensions")),
|
|
10
10
|
additionalProperties: false,
|
|
11
11
|
properties: {
|
|
12
12
|
recommendations: {
|
|
13
13
|
type: 'array',
|
|
14
14
|
description: ( localize(
|
|
15
|
-
|
|
15
|
+
9452,
|
|
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(9453, "Expected format '${publisher}.${name}'. Example: 'vscode.csharp'."))
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
unwantedRecommendations: {
|
|
25
25
|
type: 'array',
|
|
26
26
|
description: ( localize(
|
|
27
|
-
|
|
27
|
+
9454,
|
|
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(9453, "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);
|
|
@@ -68,7 +68,7 @@ let OpenEditorsView = class OpenEditorsView extends ViewPane {
|
|
|
68
68
|
static { this.DEFAULT_VISIBLE_OPEN_EDITORS = 9; }
|
|
69
69
|
static { this.DEFAULT_MIN_VISIBLE_OPEN_EDITORS = 0; }
|
|
70
70
|
static { this.ID = 'workbench.explorer.openEditorsView'; }
|
|
71
|
-
static { this.NAME = ( localize2(
|
|
71
|
+
static { this.NAME = ( localize2(5384, "Open Editors")); }
|
|
72
72
|
constructor(options, instantiationService, viewDescriptorService, contextMenuService, editorGroupService, configurationService, keybindingService, contextKeyService, themeService, telemetryService, hoverService, workingCopyService, filesConfigurationService, openerService, fileService) {
|
|
73
73
|
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
74
74
|
this.editorGroupService = editorGroupService;
|
|
@@ -428,7 +428,7 @@ let OpenEditorsView = class OpenEditorsView extends ViewPane {
|
|
|
428
428
|
this.dirtyCountElement.classList.add('hidden');
|
|
429
429
|
}
|
|
430
430
|
else {
|
|
431
|
-
this.dirtyCountElement.textContent = ( localize(
|
|
431
|
+
this.dirtyCountElement.textContent = ( localize(5385, "{0} unsaved", dirty));
|
|
432
432
|
this.dirtyCountElement.classList.remove('hidden');
|
|
433
433
|
}
|
|
434
434
|
}
|
|
@@ -699,7 +699,7 @@ OpenEditorsDragAndDrop.__decorator = ( (__decorate([
|
|
|
699
699
|
], OpenEditorsDragAndDrop.prototype, "dropHandler", null)));
|
|
700
700
|
class OpenEditorsAccessibilityProvider {
|
|
701
701
|
getWidgetAriaLabel() {
|
|
702
|
-
return ( localize(
|
|
702
|
+
return ( localize(5384, "Open Editors"));
|
|
703
703
|
}
|
|
704
704
|
getAriaLabel(element) {
|
|
705
705
|
if (element instanceof OpenEditor) {
|
|
@@ -713,7 +713,7 @@ registerAction2(class extends Action2 {
|
|
|
713
713
|
constructor() {
|
|
714
714
|
super({
|
|
715
715
|
id: 'workbench.action.toggleEditorGroupLayout',
|
|
716
|
-
title: ( localize2(
|
|
716
|
+
title: ( localize2(5386, "Toggle Vertical/Horizontal Editor Layout")),
|
|
717
717
|
f1: true,
|
|
718
718
|
keybinding: {
|
|
719
719
|
primary: KeyMod$1.Shift | KeyMod$1.Alt | KeyCode.Digit0,
|
|
@@ -743,8 +743,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
743
743
|
command: {
|
|
744
744
|
id: toggleEditorGroupLayoutId,
|
|
745
745
|
title: {
|
|
746
|
-
...( localize2(
|
|
747
|
-
mnemonicTitle: ( localize(
|
|
746
|
+
...( localize2(5387, "Flip Layout")),
|
|
747
|
+
mnemonicTitle: ( localize(5388, "Flip &&Layout"))
|
|
748
748
|
}
|
|
749
749
|
},
|
|
750
750
|
order: 1
|
|
@@ -794,7 +794,7 @@ registerAction2(class extends Action2 {
|
|
|
794
794
|
constructor() {
|
|
795
795
|
super({
|
|
796
796
|
id: 'openEditors.newUntitledFile',
|
|
797
|
-
title: ( localize2(
|
|
797
|
+
title: ( localize2(5389, "New Untitled Text File")),
|
|
798
798
|
f1: false,
|
|
799
799
|
icon: Codicon.newFile,
|
|
800
800
|
menu: {
|
|
@@ -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 {
|
|
@@ -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) {
|
|
@@ -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);
|
|
@@ -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
|
});
|
|
@@ -58,14 +58,14 @@ class NotebookAccessibilityProvider extends Disposable {
|
|
|
58
58
|
const keybinding = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
59
59
|
if (this.configurationService.getValue(AccessibilityVerbositySettingId.Notebook)) {
|
|
60
60
|
return keybinding
|
|
61
|
-
? ( localize(
|
|
61
|
+
? ( localize(10674, "Notebook\nUse {0} for accessibility help", keybinding))
|
|
62
62
|
: ( localize(
|
|
63
|
-
|
|
63
|
+
10675,
|
|
64
64
|
"Notebook\nRun the Open Accessibility Help command for more information",
|
|
65
65
|
keybinding
|
|
66
66
|
));
|
|
67
67
|
}
|
|
68
|
-
return ( localize(
|
|
68
|
+
return ( localize(10676, "Notebook"));
|
|
69
69
|
}
|
|
70
70
|
mergeEvents(last, e) {
|
|
71
71
|
const viewModel = this.viewModel();
|
|
@@ -2565,43 +2565,43 @@ const notebookCellBorder = registerColor('notebook.cellBorderColor', {
|
|
|
2565
2565
|
light: ( (transparent(listInactiveSelectionBackground, 1))),
|
|
2566
2566
|
hcDark: PANEL_BORDER,
|
|
2567
2567
|
hcLight: PANEL_BORDER
|
|
2568
|
-
}, ( localize(
|
|
2569
|
-
registerColor('notebook.focusedEditorBorder', focusBorder, ( localize(
|
|
2570
|
-
const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', debugIconStartForeground, ( localize(
|
|
2568
|
+
}, ( localize(7794, "The border color for notebook cells.")));
|
|
2569
|
+
registerColor('notebook.focusedEditorBorder', focusBorder, ( localize(7795, "The color of the notebook cell editor border.")));
|
|
2570
|
+
const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', debugIconStartForeground, ( localize(7796, "The error icon color of notebook cells in the cell status bar.")));
|
|
2571
2571
|
const runningCellRulerDecorationColor = registerColor('notebookEditorOverviewRuler.runningCellForeground', debugIconStartForeground, ( localize(
|
|
2572
|
-
|
|
2572
|
+
7797,
|
|
2573
2573
|
"The color of the running cell decoration in the notebook editor overview ruler."
|
|
2574
2574
|
)));
|
|
2575
|
-
const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground', errorForeground, ( localize(
|
|
2576
|
-
registerColor('notebookStatusRunningIcon.foreground', foreground, ( localize(
|
|
2577
|
-
registerColor('notebook.outputContainerBorderColor', null, ( localize(
|
|
2578
|
-
registerColor('notebook.outputContainerBackgroundColor', null, ( localize(
|
|
2575
|
+
const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground', errorForeground, ( localize(7798, "The error icon color of notebook cells in the cell status bar.")));
|
|
2576
|
+
registerColor('notebookStatusRunningIcon.foreground', foreground, ( localize(7799, "The running icon color of notebook cells in the cell status bar.")));
|
|
2577
|
+
registerColor('notebook.outputContainerBorderColor', null, ( localize(7800, "The border color of the notebook output container.")));
|
|
2578
|
+
registerColor('notebook.outputContainerBackgroundColor', null, ( localize(7801, "The color of the notebook output container background.")));
|
|
2579
2579
|
registerColor('notebook.cellToolbarSeparator', {
|
|
2580
2580
|
dark: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
|
|
2581
2581
|
light: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
|
|
2582
2582
|
hcDark: contrastBorder,
|
|
2583
2583
|
hcLight: contrastBorder
|
|
2584
|
-
}, ( localize(
|
|
2585
|
-
const focusedCellBackground = registerColor('notebook.focusedCellBackground', null, ( localize(
|
|
2584
|
+
}, ( localize(7802, "The color of the separator in the cell bottom toolbar")));
|
|
2585
|
+
const focusedCellBackground = registerColor('notebook.focusedCellBackground', null, ( localize(7803, "The background color of a cell when the cell is focused.")));
|
|
2586
2586
|
registerColor('notebook.selectedCellBackground', {
|
|
2587
2587
|
dark: listInactiveSelectionBackground,
|
|
2588
2588
|
light: listInactiveSelectionBackground,
|
|
2589
2589
|
hcDark: null,
|
|
2590
2590
|
hcLight: null
|
|
2591
|
-
}, ( localize(
|
|
2591
|
+
}, ( localize(7804, "The background color of a cell when the cell is selected.")));
|
|
2592
2592
|
registerColor('notebook.cellHoverBackground', {
|
|
2593
2593
|
dark: ( (transparent(focusedCellBackground, .5))),
|
|
2594
2594
|
light: ( (transparent(focusedCellBackground, .7))),
|
|
2595
2595
|
hcDark: null,
|
|
2596
2596
|
hcLight: null
|
|
2597
|
-
}, ( localize(
|
|
2597
|
+
}, ( localize(7805, "The background color of a cell when the cell is hovered.")));
|
|
2598
2598
|
registerColor('notebook.selectedCellBorder', {
|
|
2599
2599
|
dark: notebookCellBorder,
|
|
2600
2600
|
light: notebookCellBorder,
|
|
2601
2601
|
hcDark: contrastBorder,
|
|
2602
2602
|
hcLight: contrastBorder
|
|
2603
2603
|
}, ( localize(
|
|
2604
|
-
|
|
2604
|
+
7806,
|
|
2605
2605
|
"The color of the cell's top and bottom border when the cell is selected but not focused."
|
|
2606
2606
|
)));
|
|
2607
2607
|
registerColor('notebook.inactiveSelectedCellBorder', {
|
|
@@ -2609,13 +2609,13 @@ registerColor('notebook.inactiveSelectedCellBorder', {
|
|
|
2609
2609
|
light: null,
|
|
2610
2610
|
hcDark: focusBorder,
|
|
2611
2611
|
hcLight: focusBorder
|
|
2612
|
-
}, ( localize(
|
|
2612
|
+
}, ( localize(7807, "The color of the cell's borders when multiple cells are selected.")));
|
|
2613
2613
|
registerColor('notebook.focusedCellBorder', focusBorder, ( localize(
|
|
2614
|
-
|
|
2614
|
+
7808,
|
|
2615
2615
|
"The color of the cell's focus indicator borders when the cell is focused."
|
|
2616
2616
|
)));
|
|
2617
2617
|
registerColor('notebook.inactiveFocusedCellBorder', notebookCellBorder, ( localize(
|
|
2618
|
-
|
|
2618
|
+
7809,
|
|
2619
2619
|
"The color of the cell's top and bottom border when a cell is focused while the primary focus is outside of the editor."
|
|
2620
2620
|
)));
|
|
2621
2621
|
registerColor('notebook.cellStatusBarItemHoverBackground', {
|
|
@@ -2623,27 +2623,27 @@ registerColor('notebook.cellStatusBarItemHoverBackground', {
|
|
|
2623
2623
|
dark: ( (new Color( (new RGBA(255, 255, 255, 0.15))))),
|
|
2624
2624
|
hcDark: ( (new Color( (new RGBA(255, 255, 255, 0.15))))),
|
|
2625
2625
|
hcLight: ( (new Color( (new RGBA(0, 0, 0, 0.08))))),
|
|
2626
|
-
}, ( localize(
|
|
2627
|
-
registerColor('notebook.cellInsertionIndicator', focusBorder, ( localize(
|
|
2628
|
-
registerColor('notebookScrollbarSlider.background', scrollbarSliderBackground, ( localize(
|
|
2629
|
-
registerColor('notebookScrollbarSlider.hoverBackground', scrollbarSliderHoverBackground, ( localize(
|
|
2630
|
-
registerColor('notebookScrollbarSlider.activeBackground', scrollbarSliderActiveBackground, ( localize(
|
|
2626
|
+
}, ( localize(7810, "The background color of notebook cell status bar items.")));
|
|
2627
|
+
registerColor('notebook.cellInsertionIndicator', focusBorder, ( localize(7811, "The color of the notebook cell insertion indicator.")));
|
|
2628
|
+
registerColor('notebookScrollbarSlider.background', scrollbarSliderBackground, ( localize(7812, "Notebook scrollbar slider background color.")));
|
|
2629
|
+
registerColor('notebookScrollbarSlider.hoverBackground', scrollbarSliderHoverBackground, ( localize(7813, "Notebook scrollbar slider background color when hovering.")));
|
|
2630
|
+
registerColor('notebookScrollbarSlider.activeBackground', scrollbarSliderActiveBackground, ( localize(7814, "Notebook scrollbar slider background color when clicked on.")));
|
|
2631
2631
|
registerColor('notebook.symbolHighlightBackground', {
|
|
2632
2632
|
dark: ( (Color.fromHex('#ffffff0b'))),
|
|
2633
2633
|
light: ( (Color.fromHex('#fdff0033'))),
|
|
2634
2634
|
hcDark: null,
|
|
2635
2635
|
hcLight: null
|
|
2636
|
-
}, ( localize(
|
|
2636
|
+
}, ( localize(7815, "Background color of highlighted cell")));
|
|
2637
2637
|
registerColor('notebook.cellEditorBackground', {
|
|
2638
2638
|
light: SIDE_BAR_BACKGROUND,
|
|
2639
2639
|
dark: SIDE_BAR_BACKGROUND,
|
|
2640
2640
|
hcDark: null,
|
|
2641
2641
|
hcLight: null
|
|
2642
|
-
}, ( localize(
|
|
2642
|
+
}, ( localize(7816, "Cell editor background color.")));
|
|
2643
2643
|
const notebookEditorBackground = registerColor('notebook.editorBackground', {
|
|
2644
2644
|
light: EDITOR_PANE_BACKGROUND,
|
|
2645
2645
|
dark: EDITOR_PANE_BACKGROUND,
|
|
2646
2646
|
hcDark: null,
|
|
2647
2647
|
hcLight: null
|
|
2648
|
-
}, ( localize(
|
|
2648
|
+
}, ( localize(7817, "Notebook background color.")));
|
|
2649
2649
|
export { NotebookEditorWidget, cellStatusIconError, cellStatusIconSuccess, focusedCellBackground, getDefaultNotebookCreationOptions, notebookCellBorder, runningCellRulerDecorationColor };
|
|
@@ -1,32 +1,32 @@
|
|
|
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 selectKernelIcon = registerIcon('notebook-kernel-select', Codicon.serverEnvironment, ( localize(
|
|
5
|
-
const executeIcon = registerIcon('notebook-execute', Codicon.play, ( localize(
|
|
6
|
-
const configIcon = registerIcon('notebook-config', Codicon.gear, ( localize(
|
|
7
|
-
const executeAboveIcon = registerIcon('notebook-execute-above', Codicon.runAbove, ( localize(
|
|
8
|
-
const executeBelowIcon = registerIcon('notebook-execute-below', Codicon.runBelow, ( localize(
|
|
9
|
-
const stopIcon = registerIcon('notebook-stop', Codicon.primitiveSquare, ( localize(
|
|
10
|
-
const deleteCellIcon = registerIcon('notebook-delete-cell', Codicon.trash, ( localize(
|
|
11
|
-
const executeAllIcon = registerIcon('notebook-execute-all', Codicon.runAll, ( localize(
|
|
12
|
-
const editIcon = registerIcon('notebook-edit', Codicon.pencil, ( localize(
|
|
13
|
-
const stopEditIcon = registerIcon('notebook-stop-edit', Codicon.check, ( localize(
|
|
14
|
-
const moveUpIcon = registerIcon('notebook-move-up', Codicon.arrowUp, ( localize(
|
|
15
|
-
const moveDownIcon = registerIcon('notebook-move-down', Codicon.arrowDown, ( localize(
|
|
16
|
-
const clearIcon = registerIcon('notebook-clear', Codicon.clearAll, ( localize(
|
|
17
|
-
const splitCellIcon = registerIcon('notebook-split-cell', Codicon.splitVertical, ( localize(
|
|
18
|
-
const successStateIcon = registerIcon('notebook-state-success', Codicon.check, ( localize(
|
|
19
|
-
const errorStateIcon = registerIcon('notebook-state-error', Codicon.error, ( localize(
|
|
20
|
-
const pendingStateIcon = registerIcon('notebook-state-pending', Codicon.clock, ( localize(
|
|
21
|
-
const executingStateIcon = registerIcon('notebook-state-executing', Codicon.sync, ( localize(
|
|
22
|
-
const collapsedIcon = registerIcon('notebook-collapsed', Codicon.chevronRight, ( localize(
|
|
23
|
-
const expandedIcon = registerIcon('notebook-expanded', Codicon.chevronDown, ( localize(
|
|
24
|
-
const openAsTextIcon = registerIcon('notebook-open-as-text', Codicon.fileCode, ( localize(
|
|
25
|
-
const revertIcon = registerIcon('notebook-revert', Codicon.discard, ( localize(
|
|
26
|
-
const renderOutputIcon = registerIcon('notebook-render-output', Codicon.preview, ( localize(
|
|
27
|
-
const mimetypeIcon = registerIcon('notebook-mimetype', Codicon.code, ( localize(
|
|
28
|
-
const copyIcon = registerIcon('notebook-copy', Codicon.copy, ( localize(
|
|
29
|
-
const previousChangeIcon = registerIcon('notebook-diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
30
|
-
const nextChangeIcon = registerIcon('notebook-diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
31
|
-
const variablesViewIcon = registerIcon('variables-view-icon', Codicon.debugAlt, ( localize(
|
|
4
|
+
const selectKernelIcon = registerIcon('notebook-kernel-select', Codicon.serverEnvironment, ( localize(5628, 'Configure icon to select a kernel in notebook editors.')));
|
|
5
|
+
const executeIcon = registerIcon('notebook-execute', Codicon.play, ( localize(5629, 'Icon to execute in notebook editors.')));
|
|
6
|
+
const configIcon = registerIcon('notebook-config', Codicon.gear, ( localize(5630, 'Icon to configure in notebook editors.')));
|
|
7
|
+
const executeAboveIcon = registerIcon('notebook-execute-above', Codicon.runAbove, ( localize(5631, 'Icon to execute above cells in notebook editors.')));
|
|
8
|
+
const executeBelowIcon = registerIcon('notebook-execute-below', Codicon.runBelow, ( localize(5632, 'Icon to execute below cells in notebook editors.')));
|
|
9
|
+
const stopIcon = registerIcon('notebook-stop', Codicon.primitiveSquare, ( localize(5633, 'Icon to stop an execution in notebook editors.')));
|
|
10
|
+
const deleteCellIcon = registerIcon('notebook-delete-cell', Codicon.trash, ( localize(5634, 'Icon to delete a cell in notebook editors.')));
|
|
11
|
+
const executeAllIcon = registerIcon('notebook-execute-all', Codicon.runAll, ( localize(5635, 'Icon to execute all cells in notebook editors.')));
|
|
12
|
+
const editIcon = registerIcon('notebook-edit', Codicon.pencil, ( localize(5636, 'Icon to edit a cell in notebook editors.')));
|
|
13
|
+
const stopEditIcon = registerIcon('notebook-stop-edit', Codicon.check, ( localize(5637, 'Icon to stop editing a cell in notebook editors.')));
|
|
14
|
+
const moveUpIcon = registerIcon('notebook-move-up', Codicon.arrowUp, ( localize(5638, 'Icon to move up a cell in notebook editors.')));
|
|
15
|
+
const moveDownIcon = registerIcon('notebook-move-down', Codicon.arrowDown, ( localize(5639, 'Icon to move down a cell in notebook editors.')));
|
|
16
|
+
const clearIcon = registerIcon('notebook-clear', Codicon.clearAll, ( localize(5640, 'Icon to clear cell outputs in notebook editors.')));
|
|
17
|
+
const splitCellIcon = registerIcon('notebook-split-cell', Codicon.splitVertical, ( localize(5641, 'Icon to split a cell in notebook editors.')));
|
|
18
|
+
const successStateIcon = registerIcon('notebook-state-success', Codicon.check, ( localize(5642, 'Icon to indicate a success state in notebook editors.')));
|
|
19
|
+
const errorStateIcon = registerIcon('notebook-state-error', Codicon.error, ( localize(5643, 'Icon to indicate an error state in notebook editors.')));
|
|
20
|
+
const pendingStateIcon = registerIcon('notebook-state-pending', Codicon.clock, ( localize(5644, 'Icon to indicate a pending state in notebook editors.')));
|
|
21
|
+
const executingStateIcon = registerIcon('notebook-state-executing', Codicon.sync, ( localize(5645, 'Icon to indicate an executing state in notebook editors.')));
|
|
22
|
+
const collapsedIcon = registerIcon('notebook-collapsed', Codicon.chevronRight, ( localize(5646, 'Icon to annotate a collapsed section in notebook editors.')));
|
|
23
|
+
const expandedIcon = registerIcon('notebook-expanded', Codicon.chevronDown, ( localize(5647, 'Icon to annotate an expanded section in notebook editors.')));
|
|
24
|
+
const openAsTextIcon = registerIcon('notebook-open-as-text', Codicon.fileCode, ( localize(5648, 'Icon to open the notebook in a text editor.')));
|
|
25
|
+
const revertIcon = registerIcon('notebook-revert', Codicon.discard, ( localize(5649, 'Icon to revert in notebook editors.')));
|
|
26
|
+
const renderOutputIcon = registerIcon('notebook-render-output', Codicon.preview, ( localize(5650, 'Icon to render output in diff editor.')));
|
|
27
|
+
const mimetypeIcon = registerIcon('notebook-mimetype', Codicon.code, ( localize(5651, 'Icon for a mime type in notebook editors.')));
|
|
28
|
+
const copyIcon = registerIcon('notebook-copy', Codicon.copy, ( localize(5652, 'Icon to copy content to clipboard')));
|
|
29
|
+
const previousChangeIcon = registerIcon('notebook-diff-editor-previous-change', Codicon.arrowUp, ( localize(5653, 'Icon for the previous change action in the diff editor.')));
|
|
30
|
+
const nextChangeIcon = registerIcon('notebook-diff-editor-next-change', Codicon.arrowDown, ( localize(5654, 'Icon for the next change action in the diff editor.')));
|
|
31
|
+
const variablesViewIcon = registerIcon('variables-view-icon', Codicon.debugAlt, ( localize(5655, 'View icon of the variables view.')));
|
|
32
32
|
export { clearIcon, collapsedIcon, configIcon, copyIcon, deleteCellIcon, editIcon, errorStateIcon, executeAboveIcon, executeAllIcon, executeBelowIcon, executeIcon, executingStateIcon, expandedIcon, mimetypeIcon, moveDownIcon, moveUpIcon, nextChangeIcon, openAsTextIcon, pendingStateIcon, previousChangeIcon, renderOutputIcon, revertIcon, selectKernelIcon, splitCellIcon, stopEditIcon, stopIcon, successStateIcon, variablesViewIcon };
|
|
@@ -183,9 +183,9 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
183
183
|
'notebook-cell-output-line-height': `${this.options.outputLineHeight}px`,
|
|
184
184
|
'notebook-cell-output-max-height': `${this.options.outputLineHeight * this.options.outputLineLimit + 2}px`,
|
|
185
185
|
'notebook-cell-output-font-family': this.options.outputFontFamily || this.options.fontFamily,
|
|
186
|
-
'notebook-cell-markup-empty-content': ( localize(
|
|
187
|
-
'notebook-cell-renderer-not-found-error': ( localize(
|
|
188
|
-
'notebook-cell-renderer-fallbacks-exhausted': ( localize(
|
|
186
|
+
'notebook-cell-markup-empty-content': ( localize(10669, "Empty markdown cell, double-click or press enter to edit.")),
|
|
187
|
+
'notebook-cell-renderer-not-found-error': ( localize(10670, "No renderer found for '$0'")),
|
|
188
|
+
'notebook-cell-renderer-fallbacks-exhausted': ( localize(10671, "Could not render content for '$0'")),
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
generateContent(baseUrl) {
|
|
@@ -985,7 +985,7 @@ let BackLayerWebView = class BackLayerWebView extends Themable {
|
|
|
985
985
|
this.localResourceRootsCache = this._getResourceRootsCache();
|
|
986
986
|
const webview = webviewService.createWebviewElement({
|
|
987
987
|
origin: BackLayerWebView_1.getOriginStore(this.storageService).getOrigin(this.notebookViewType, undefined),
|
|
988
|
-
title: ( localize(
|
|
988
|
+
title: ( localize(10672, "Notebook webview content")),
|
|
989
989
|
options: {
|
|
990
990
|
purpose: WebviewContentPurpose.NotebookRenderer,
|
|
991
991
|
enableFindWidget: false,
|