@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,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(10651, "Empty markdown cell, double-click or press enter to edit.")),
|
|
187
|
+
'notebook-cell-renderer-not-found-error': ( localize(10652, "No renderer found for '$0'")),
|
|
188
|
+
'notebook-cell-renderer-fallbacks-exhausted': ( localize(10653, "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(10654, "Notebook webview content")),
|
|
989
989
|
options: {
|
|
990
990
|
purpose: WebviewContentPurpose.NotebookRenderer,
|
|
991
991
|
enableFindWidget: false,
|
|
@@ -228,7 +228,7 @@ let CodeCellRenderer = class CodeCellRenderer extends AbstractCellRenderer {
|
|
|
228
228
|
const cellInputCollapsedContainer = append(cellContainer, $('.input-collapse-container'));
|
|
229
229
|
cellInputCollapsedContainer.style.display = 'none';
|
|
230
230
|
const executionOrderLabel = append(focusIndicatorLeft.domNode, $('div.execution-count-label'));
|
|
231
|
-
executionOrderLabel.title = ( localize(
|
|
231
|
+
executionOrderLabel.title = ( localize(10655, 'Execution Order'));
|
|
232
232
|
const editorPart = append(cellContainer, $('.cell-editor-part'));
|
|
233
233
|
const editorContainer = append(editorPart, $('.cell-editor-container'));
|
|
234
234
|
const cellCommentPartContainer = append(container, $('.cell-comment-container'));
|
|
@@ -2,18 +2,18 @@ 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
4
|
const settingsScopeDropDownIcon = registerIcon('settings-folder-dropdown', Codicon.triangleDown, ( localize(
|
|
5
|
-
|
|
5
|
+
6271,
|
|
6
6
|
'Icon for the folder dropdown button in the split JSON Settings editor.'
|
|
7
7
|
)));
|
|
8
|
-
const settingsMoreActionIcon = registerIcon('settings-more-action', Codicon.gear, ( localize(
|
|
9
|
-
const keybindingsRecordKeysIcon = registerIcon('keybindings-record-keys', Codicon.recordKeys, ( localize(
|
|
10
|
-
const keybindingsSortIcon = registerIcon('keybindings-sort', Codicon.sortPrecedence, ( localize(
|
|
11
|
-
const keybindingsEditIcon = registerIcon('keybindings-edit', Codicon.edit, ( localize(
|
|
12
|
-
const keybindingsAddIcon = registerIcon('keybindings-add', Codicon.add, ( localize(
|
|
13
|
-
const settingsEditIcon = registerIcon('settings-edit', Codicon.edit, ( localize(
|
|
14
|
-
const settingsRemoveIcon = registerIcon('settings-remove', Codicon.close, ( localize(
|
|
15
|
-
const settingsDiscardIcon = registerIcon('settings-discard', Codicon.discard, ( localize(
|
|
16
|
-
const preferencesClearInputIcon = registerIcon('preferences-clear-input', Codicon.clearAll, ( localize(
|
|
17
|
-
const preferencesFilterIcon = registerIcon('preferences-filter', Codicon.filter, ( localize(
|
|
18
|
-
const preferencesOpenSettingsIcon = registerIcon('preferences-open-settings', Codicon.goToFile, ( localize(
|
|
8
|
+
const settingsMoreActionIcon = registerIcon('settings-more-action', Codicon.gear, ( localize(6272, 'Icon for the \'more actions\' action in the Settings UI.')));
|
|
9
|
+
const keybindingsRecordKeysIcon = registerIcon('keybindings-record-keys', Codicon.recordKeys, ( localize(6273, 'Icon for the \'record keys\' action in the keybinding UI.')));
|
|
10
|
+
const keybindingsSortIcon = registerIcon('keybindings-sort', Codicon.sortPrecedence, ( localize(6274, 'Icon for the \'sort by precedence\' toggle in the keybinding UI.')));
|
|
11
|
+
const keybindingsEditIcon = registerIcon('keybindings-edit', Codicon.edit, ( localize(6275, 'Icon for the edit action in the keybinding UI.')));
|
|
12
|
+
const keybindingsAddIcon = registerIcon('keybindings-add', Codicon.add, ( localize(6276, 'Icon for the add action in the keybinding UI.')));
|
|
13
|
+
const settingsEditIcon = registerIcon('settings-edit', Codicon.edit, ( localize(6277, 'Icon for the edit action in the Settings UI.')));
|
|
14
|
+
const settingsRemoveIcon = registerIcon('settings-remove', Codicon.close, ( localize(6278, 'Icon for the remove action in the Settings UI.')));
|
|
15
|
+
const settingsDiscardIcon = registerIcon('settings-discard', Codicon.discard, ( localize(6279, 'Icon for the discard action in the Settings UI.')));
|
|
16
|
+
const preferencesClearInputIcon = registerIcon('preferences-clear-input', Codicon.clearAll, ( localize(6280, 'Icon for clear input in the Settings and keybinding UI.')));
|
|
17
|
+
const preferencesFilterIcon = registerIcon('preferences-filter', Codicon.filter, ( localize(6281, 'Icon for the button that suggests filters for the Settings UI.')));
|
|
18
|
+
const preferencesOpenSettingsIcon = registerIcon('preferences-open-settings', Codicon.goToFile, ( localize(6282, 'Icon for open settings commands.')));
|
|
19
19
|
export { keybindingsAddIcon, keybindingsEditIcon, keybindingsRecordKeysIcon, keybindingsSortIcon, preferencesClearInputIcon, preferencesFilterIcon, preferencesOpenSettingsIcon, settingsDiscardIcon, settingsEditIcon, settingsMoreActionIcon, settingsRemoveIcon, settingsScopeDropDownIcon };
|
|
@@ -30,7 +30,7 @@ let SwitchQuickDiffViewItem = class SwitchQuickDiffViewItem extends SelectAction
|
|
|
30
30
|
const peekTitleColor = theme.getColor(peekViewTitleBackground);
|
|
31
31
|
const opaqueTitleColor = peekTitleColor?.makeOpaque(editorBackgroundColor) ?? editorBackgroundColor;
|
|
32
32
|
styles.selectBackground = ( (( (opaqueTitleColor.lighten(.6))).toString()));
|
|
33
|
-
super(null, action, items, startingSelection, contextViewService, styles, { ariaLabel: ( localize(
|
|
33
|
+
super(null, action, items, startingSelection, contextViewService, styles, { ariaLabel: ( localize(10418, 'Switch quick diff base')) });
|
|
34
34
|
this.optionsItems = items;
|
|
35
35
|
}
|
|
36
36
|
setSelection(provider) {
|
|
@@ -51,7 +51,7 @@ SwitchQuickDiffViewItem = ( (__decorate([
|
|
|
51
51
|
], SwitchQuickDiffViewItem)));
|
|
52
52
|
class SwitchQuickDiffBaseAction extends Action {
|
|
53
53
|
static { this.ID = 'quickDiff.base.switch'; }
|
|
54
|
-
static { this.LABEL = ( localize(
|
|
54
|
+
static { this.LABEL = ( localize(10419, "Switch Quick Diff Base")); }
|
|
55
55
|
constructor(callback) {
|
|
56
56
|
super(SwitchQuickDiffBaseAction.ID, SwitchQuickDiffBaseAction.LABEL, undefined, undefined);
|
|
57
57
|
this.callback = callback;
|
|
@@ -237,14 +237,14 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
237
237
|
if (!this.shouldUseDropdown()) {
|
|
238
238
|
detail = this.model.changes.length > 1
|
|
239
239
|
? ( localize(
|
|
240
|
-
|
|
240
|
+
6333,
|
|
241
241
|
"{0} - {1} of {2} changes",
|
|
242
242
|
label,
|
|
243
243
|
providerIndex + 1,
|
|
244
244
|
providerChanges.length
|
|
245
245
|
))
|
|
246
246
|
: ( localize(
|
|
247
|
-
|
|
247
|
+
6334,
|
|
248
248
|
"{0} - {1} of {2} change",
|
|
249
249
|
label,
|
|
250
250
|
providerIndex + 1,
|
|
@@ -254,8 +254,8 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
254
254
|
}
|
|
255
255
|
else {
|
|
256
256
|
detail = this.model.changes.length > 1
|
|
257
|
-
? ( localize(
|
|
258
|
-
: ( localize(
|
|
257
|
+
? ( localize(6335, "{0} of {1} changes", providerIndex + 1, providerChanges.length))
|
|
258
|
+
: ( localize(6336, "{0} of {1} change", providerIndex + 1, providerChanges.length));
|
|
259
259
|
this.dropdownContainer.style.display = 'inherit';
|
|
260
260
|
}
|
|
261
261
|
this.setTitle(this.title, detail);
|
|
@@ -313,7 +313,7 @@ let DirtyDiffWidget = class DirtyDiffWidget extends PeekViewWidget {
|
|
|
313
313
|
this._actionbarWidget.clear();
|
|
314
314
|
this._actionbarWidget.push(actions.reverse(), { label: false, icon: true });
|
|
315
315
|
this._actionbarWidget.push([next, previous], { label: false, icon: true });
|
|
316
|
-
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(
|
|
316
|
+
this._actionbarWidget.push(( (new Action('peekview.close', ( localize(6337, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => this.dispose()))), { label: false, icon: true });
|
|
317
317
|
}
|
|
318
318
|
_fillHead(container) {
|
|
319
319
|
super._fillHead(container, true);
|
|
@@ -418,7 +418,7 @@ class ShowPreviousChangeAction extends EditorAction {
|
|
|
418
418
|
constructor(outerEditor) {
|
|
419
419
|
super({
|
|
420
420
|
id: 'editor.action.dirtydiff.previous',
|
|
421
|
-
label: ( localize(
|
|
421
|
+
label: ( localize(6338, "Show Previous Change")),
|
|
422
422
|
alias: 'Show Previous Change',
|
|
423
423
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
424
424
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Shift | KeyMod$1.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
@@ -445,7 +445,7 @@ class ShowNextChangeAction extends EditorAction {
|
|
|
445
445
|
constructor(outerEditor) {
|
|
446
446
|
super({
|
|
447
447
|
id: 'editor.action.dirtydiff.next',
|
|
448
|
-
label: ( localize(
|
|
448
|
+
label: ( localize(6339, "Show Next Change")),
|
|
449
449
|
alias: 'Show Next Change',
|
|
450
450
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
451
451
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
@@ -472,7 +472,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
472
472
|
group: '7_change_nav',
|
|
473
473
|
command: {
|
|
474
474
|
id: 'editor.action.dirtydiff.next',
|
|
475
|
-
title: ( localize(
|
|
475
|
+
title: ( localize(6340, "Next &&Change"))
|
|
476
476
|
},
|
|
477
477
|
order: 1
|
|
478
478
|
});
|
|
@@ -480,7 +480,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
480
480
|
group: '7_change_nav',
|
|
481
481
|
command: {
|
|
482
482
|
id: 'editor.action.dirtydiff.previous',
|
|
483
|
-
title: ( localize(
|
|
483
|
+
title: ( localize(6341, "Previous &&Change"))
|
|
484
484
|
},
|
|
485
485
|
order: 2
|
|
486
486
|
});
|
|
@@ -488,7 +488,7 @@ class GotoPreviousChangeAction extends EditorAction {
|
|
|
488
488
|
constructor() {
|
|
489
489
|
super({
|
|
490
490
|
id: 'workbench.action.editor.previousChange',
|
|
491
|
-
label: ( localize(
|
|
491
|
+
label: ( localize(6342, "Go to Previous Change")),
|
|
492
492
|
alias: 'Go to Previous Change',
|
|
493
493
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
494
494
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Shift | KeyMod$1.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
@@ -522,7 +522,7 @@ class GotoNextChangeAction extends EditorAction {
|
|
|
522
522
|
constructor() {
|
|
523
523
|
super({
|
|
524
524
|
id: 'workbench.action.editor.nextChange',
|
|
525
|
-
label: ( localize(
|
|
525
|
+
label: ( localize(6343, "Go to Next Change")),
|
|
526
526
|
alias: 'Go to Next Change',
|
|
527
527
|
precondition: ( (TextCompareEditorActiveContext.toNegated())),
|
|
528
528
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod$1.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
@@ -841,20 +841,20 @@ const editorGutterModifiedBackground = registerColor('editorGutter.modifiedBackg
|
|
|
841
841
|
light: '#2090D3',
|
|
842
842
|
hcDark: '#1B81A8',
|
|
843
843
|
hcLight: '#2090D3'
|
|
844
|
-
}, ( localize(
|
|
844
|
+
}, ( localize(6344, "Editor gutter background color for lines that are modified.")));
|
|
845
845
|
const editorGutterAddedBackground = registerColor('editorGutter.addedBackground', {
|
|
846
846
|
dark: '#487E02',
|
|
847
847
|
light: '#48985D',
|
|
848
848
|
hcDark: '#487E02',
|
|
849
849
|
hcLight: '#48985D'
|
|
850
|
-
}, ( localize(
|
|
851
|
-
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localize(
|
|
852
|
-
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localize(
|
|
853
|
-
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localize(
|
|
854
|
-
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localize(
|
|
855
|
-
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localize(
|
|
856
|
-
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localize(
|
|
857
|
-
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localize(
|
|
850
|
+
}, ( localize(6345, "Editor gutter background color for lines that are added.")));
|
|
851
|
+
const editorGutterDeletedBackground = registerColor('editorGutter.deletedBackground', editorErrorForeground, ( localize(6346, "Editor gutter background color for lines that are deleted.")));
|
|
852
|
+
const minimapGutterModifiedBackground = registerColor('minimapGutter.modifiedBackground', editorGutterModifiedBackground, ( localize(6347, "Minimap gutter background color for lines that are modified.")));
|
|
853
|
+
const minimapGutterAddedBackground = registerColor('minimapGutter.addedBackground', editorGutterAddedBackground, ( localize(6348, "Minimap gutter background color for lines that are added.")));
|
|
854
|
+
const minimapGutterDeletedBackground = registerColor('minimapGutter.deletedBackground', editorGutterDeletedBackground, ( localize(6349, "Minimap gutter background color for lines that are deleted.")));
|
|
855
|
+
const overviewRulerModifiedForeground = registerColor('editorOverviewRuler.modifiedForeground', ( (transparent(editorGutterModifiedBackground, 0.6))), ( localize(6350, 'Overview ruler marker color for modified content.')));
|
|
856
|
+
const overviewRulerAddedForeground = registerColor('editorOverviewRuler.addedForeground', ( (transparent(editorGutterAddedBackground, 0.6))), ( localize(6351, 'Overview ruler marker color for added content.')));
|
|
857
|
+
const overviewRulerDeletedForeground = registerColor('editorOverviewRuler.deletedForeground', ( (transparent(editorGutterDeletedBackground, 0.6))), ( localize(6352, 'Overview ruler marker color for deleted content.')));
|
|
858
858
|
let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends Disposable {
|
|
859
859
|
static createDecoration(className, tooltip, options) {
|
|
860
860
|
const decorationOptions = {
|
|
@@ -889,7 +889,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
889
889
|
const gutter = decorations === 'all' || decorations === 'gutter';
|
|
890
890
|
const overview = decorations === 'all' || decorations === 'overview';
|
|
891
891
|
const minimap = decorations === 'all' || decorations === 'minimap';
|
|
892
|
-
const diffAdded = ( localize(
|
|
892
|
+
const diffAdded = ( localize(6353, 'Added lines'));
|
|
893
893
|
this.addedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-added', diffAdded, {
|
|
894
894
|
gutter,
|
|
895
895
|
overview: { active: overview, color: overviewRulerAddedForeground },
|
|
@@ -902,7 +902,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
902
902
|
minimap: { active: minimap, color: minimapGutterAddedBackground },
|
|
903
903
|
isWholeLine: true
|
|
904
904
|
});
|
|
905
|
-
const diffModified = ( localize(
|
|
905
|
+
const diffModified = ( localize(6354, 'Changed lines'));
|
|
906
906
|
this.modifiedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-modified', diffModified, {
|
|
907
907
|
gutter,
|
|
908
908
|
overview: { active: overview, color: overviewRulerModifiedForeground },
|
|
@@ -915,7 +915,7 @@ let DirtyDiffDecorator = DirtyDiffDecorator_1 = class DirtyDiffDecorator extends
|
|
|
915
915
|
minimap: { active: minimap, color: minimapGutterModifiedBackground },
|
|
916
916
|
isWholeLine: true
|
|
917
917
|
});
|
|
918
|
-
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted', ( localize(
|
|
918
|
+
this.deletedOptions = DirtyDiffDecorator_1.createDecoration('dirty-diff-deleted', ( localize(6355, 'Removed lines')), {
|
|
919
919
|
gutter,
|
|
920
920
|
overview: { active: overview, color: overviewRulerDeletedForeground },
|
|
921
921
|
minimap: { active: minimap, color: minimapGutterDeletedBackground },
|
package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { EditorAction2 } from '../../../../../editor/browser/editorExtensions.js
|
|
|
2
2
|
import { localize2 } from '../../../../../nls.js';
|
|
3
3
|
import { Action2 } from '../../../../../platform/actions/common/actions.js';
|
|
4
4
|
const defaultOptions = {
|
|
5
|
-
category: ( localize2(
|
|
5
|
+
category: ( localize2(10515, "Snippets")),
|
|
6
6
|
};
|
|
7
7
|
class SnippetsAction extends Action2 {
|
|
8
8
|
constructor(desc) {
|
|
@@ -13,7 +13,7 @@ class ApplyFileSnippetAction extends SnippetsAction {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: ApplyFileSnippetAction.Id,
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(6761, "Fill File with Snippet")),
|
|
17
17
|
f1: true,
|
|
18
18
|
});
|
|
19
19
|
}
|
|
@@ -75,7 +75,7 @@ class ApplyFileSnippetAction extends SnippetsAction {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
const pick = await quickInputService.pick(picks, {
|
|
78
|
-
placeHolder: ( localize(
|
|
78
|
+
placeHolder: ( localize(6762, 'Select a snippet')),
|
|
79
79
|
matchOnDetail: true,
|
|
80
80
|
});
|
|
81
81
|
return pick?.snippet;
|
|
@@ -25,7 +25,7 @@ class SnippetCompletion {
|
|
|
25
25
|
constructor(snippet, range) {
|
|
26
26
|
this.snippet = snippet;
|
|
27
27
|
this.label = { label: snippet.prefix, description: snippet.name };
|
|
28
|
-
this.detail = ( localize(
|
|
28
|
+
this.detail = ( localize(6742, "{0} ({1})", snippet.description || snippet.name, snippet.source));
|
|
29
29
|
this.insertText = snippet.codeSnippet;
|
|
30
30
|
this.extensionId = snippet.extensionId;
|
|
31
31
|
this.range = range;
|
|
@@ -119,14 +119,14 @@ let SnippetCompletionProvider = class SnippetCompletionProvider {
|
|
|
119
119
|
let to = i + 1;
|
|
120
120
|
for (; to < suggestions.length && item.label === suggestions[to].label; to++) {
|
|
121
121
|
suggestions[to].label.label = ( localize(
|
|
122
|
-
|
|
122
|
+
6743,
|
|
123
123
|
"{0}, {1}",
|
|
124
124
|
suggestions[to].label.label,
|
|
125
125
|
suggestions[to].snippet.name
|
|
126
126
|
));
|
|
127
127
|
}
|
|
128
128
|
if (to > i + 1) {
|
|
129
|
-
suggestions[i].label.label = ( localize(
|
|
129
|
+
suggestions[i].label.label = ( localize(6743, "{0}, {1}", suggestions[i].label.label, suggestions[i].snippet.name));
|
|
130
130
|
i = to;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
@@ -211,14 +211,14 @@ class SnippetFile {
|
|
|
211
211
|
source = this._extension.displayName || this._extension.name;
|
|
212
212
|
}
|
|
213
213
|
else if (this.source === SnippetSource.Workspace) {
|
|
214
|
-
source = ( localize(
|
|
214
|
+
source = ( localize(6739, "Workspace Snippet"));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
if (this.isGlobalSnippets) {
|
|
218
|
-
source = ( localize(
|
|
218
|
+
source = ( localize(6740, "Global User Snippet"));
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
221
|
-
source = ( localize(
|
|
221
|
+
source = ( localize(6741, "User Snippet"));
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
for (const _prefix of Iterable.wrap(prefix)) {
|
|
@@ -32,7 +32,7 @@ var snippetExt;
|
|
|
32
32
|
function toValidSnippet(extension, snippet, languageService) {
|
|
33
33
|
if (isFalsyOrWhitespace(snippet.path)) {
|
|
34
34
|
extension.collector.error(( localize(
|
|
35
|
-
|
|
35
|
+
2997,
|
|
36
36
|
"Expected string in `contributes.{0}.path`. Provided value: {1}",
|
|
37
37
|
extension.description.name,
|
|
38
38
|
String(snippet.path)
|
|
@@ -41,7 +41,7 @@ var snippetExt;
|
|
|
41
41
|
}
|
|
42
42
|
if (isFalsyOrWhitespace(snippet.language) && !snippet.path.endsWith('.code-snippets')) {
|
|
43
43
|
extension.collector.error(( localize(
|
|
44
|
-
|
|
44
|
+
2998,
|
|
45
45
|
"When omitting the language, the value of `contributes.{0}.path` must be a `.code-snippets`-file. Provided value: {1}",
|
|
46
46
|
extension.description.name,
|
|
47
47
|
String(snippet.path)
|
|
@@ -50,7 +50,7 @@ var snippetExt;
|
|
|
50
50
|
}
|
|
51
51
|
if (!isFalsyOrWhitespace(snippet.language) && !languageService.isRegisteredLanguageId(snippet.language)) {
|
|
52
52
|
extension.collector.error(( localize(
|
|
53
|
-
|
|
53
|
+
2999,
|
|
54
54
|
"Unknown language in `contributes.{0}.language`. Provided value: {1}",
|
|
55
55
|
extension.description.name,
|
|
56
56
|
String(snippet.language)
|
|
@@ -61,7 +61,7 @@ var snippetExt;
|
|
|
61
61
|
const snippetLocation = joinPath(extensionLocation, snippet.path);
|
|
62
62
|
if (!isEqualOrParent(snippetLocation, extensionLocation)) {
|
|
63
63
|
extension.collector.error(( localize(
|
|
64
|
-
|
|
64
|
+
3000,
|
|
65
65
|
"Expected `contributes.{0}.path` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
|
|
66
66
|
extension.description.name,
|
|
67
67
|
snippetLocation.path,
|
|
@@ -76,7 +76,7 @@ var snippetExt;
|
|
|
76
76
|
}
|
|
77
77
|
snippetExt.toValidSnippet = toValidSnippet;
|
|
78
78
|
snippetExt.snippetsContribution = {
|
|
79
|
-
description: ( localize(
|
|
79
|
+
description: ( localize(3001, 'Contributes snippets.')),
|
|
80
80
|
type: 'array',
|
|
81
81
|
defaultSnippets: [{ body: [{ language: '', path: '' }] }],
|
|
82
82
|
items: {
|
|
@@ -84,12 +84,12 @@ var snippetExt;
|
|
|
84
84
|
defaultSnippets: [{ body: { language: '${1:id}', path: './snippets/${2:id}.json.' } }],
|
|
85
85
|
properties: {
|
|
86
86
|
language: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(3002, 'Language identifier for which this snippet is contributed to.')),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
path: {
|
|
91
91
|
description: ( localize(
|
|
92
|
-
|
|
92
|
+
3003,
|
|
93
93
|
'Path of the snippets file. The path is relative to the extension folder and typically starts with \'./snippets/\'.'
|
|
94
94
|
)),
|
|
95
95
|
type: 'string'
|
|
@@ -338,14 +338,14 @@ let SnippetsService = class SnippetsService {
|
|
|
338
338
|
file.load().then(file => {
|
|
339
339
|
if (( (file.data.some(snippet => snippet.isBogous)))) {
|
|
340
340
|
extension.collector.warn(( localize(
|
|
341
|
-
|
|
341
|
+
3004,
|
|
342
342
|
"One or more snippets from the extension '{0}' very likely confuse snippet-variables and snippet-placeholders (see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax for more details)",
|
|
343
343
|
extension.description.name
|
|
344
344
|
)));
|
|
345
345
|
}
|
|
346
346
|
}, err => {
|
|
347
347
|
extension.collector.warn(( localize(
|
|
348
|
-
|
|
348
|
+
3005,
|
|
349
349
|
"The snippet file \"{0}\" could not be read.",
|
|
350
350
|
(file.location.toString())
|
|
351
351
|
)));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { localize } from '../../../../nls.js';
|
|
2
2
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
3
3
|
import { language } from '../../../../base/common/platform.js';
|
|
4
|
-
const HasSpeechProvider = ( (new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(
|
|
4
|
+
const HasSpeechProvider = ( (new RawContextKey('hasSpeechProvider', false, { type: 'boolean', description: ( localize(6299, "A speech provider is registered to the speech service.")) })));
|
|
5
5
|
const SpeechToTextInProgress = ( (new RawContextKey(
|
|
6
6
|
'speechToTextInProgress',
|
|
7
7
|
false,
|
|
8
|
-
{ type: 'boolean', description: ( localize(
|
|
8
|
+
{ type: 'boolean', description: ( localize(6300, "A speech-to-text session is in progress.")) }
|
|
9
9
|
)));
|
|
10
10
|
const TextToSpeechInProgress = ( (new RawContextKey(
|
|
11
11
|
'textToSpeechInProgress',
|
|
12
12
|
false,
|
|
13
|
-
{ type: 'boolean', description: ( localize(
|
|
13
|
+
{ type: 'boolean', description: ( localize(6301, "A text-to-speech session is in progress.")) }
|
|
14
14
|
)));
|
|
15
15
|
var SpeechToTextStatus;
|
|
16
16
|
( ((function(SpeechToTextStatus) {
|
|
@@ -41,82 +41,82 @@ var AccessibilityVoiceSettingId;
|
|
|
41
41
|
const SPEECH_LANGUAGE_CONFIG = AccessibilityVoiceSettingId.SpeechLanguage;
|
|
42
42
|
const SPEECH_LANGUAGES = {
|
|
43
43
|
['da-DK']: {
|
|
44
|
-
name: ( localize(
|
|
44
|
+
name: ( localize(6302, "Danish (Denmark)"))
|
|
45
45
|
},
|
|
46
46
|
['de-DE']: {
|
|
47
|
-
name: ( localize(
|
|
47
|
+
name: ( localize(6303, "German (Germany)"))
|
|
48
48
|
},
|
|
49
49
|
['en-AU']: {
|
|
50
|
-
name: ( localize(
|
|
50
|
+
name: ( localize(6304, "English (Australia)"))
|
|
51
51
|
},
|
|
52
52
|
['en-CA']: {
|
|
53
|
-
name: ( localize(
|
|
53
|
+
name: ( localize(6305, "English (Canada)"))
|
|
54
54
|
},
|
|
55
55
|
['en-GB']: {
|
|
56
|
-
name: ( localize(
|
|
56
|
+
name: ( localize(6306, "English (United Kingdom)"))
|
|
57
57
|
},
|
|
58
58
|
['en-IE']: {
|
|
59
|
-
name: ( localize(
|
|
59
|
+
name: ( localize(6307, "English (Ireland)"))
|
|
60
60
|
},
|
|
61
61
|
['en-IN']: {
|
|
62
|
-
name: ( localize(
|
|
62
|
+
name: ( localize(6308, "English (India)"))
|
|
63
63
|
},
|
|
64
64
|
['en-NZ']: {
|
|
65
|
-
name: ( localize(
|
|
65
|
+
name: ( localize(6309, "English (New Zealand)"))
|
|
66
66
|
},
|
|
67
67
|
['en-US']: {
|
|
68
|
-
name: ( localize(
|
|
68
|
+
name: ( localize(6310, "English (United States)"))
|
|
69
69
|
},
|
|
70
70
|
['es-ES']: {
|
|
71
|
-
name: ( localize(
|
|
71
|
+
name: ( localize(6311, "Spanish (Spain)"))
|
|
72
72
|
},
|
|
73
73
|
['es-MX']: {
|
|
74
|
-
name: ( localize(
|
|
74
|
+
name: ( localize(6312, "Spanish (Mexico)"))
|
|
75
75
|
},
|
|
76
76
|
['fr-CA']: {
|
|
77
|
-
name: ( localize(
|
|
77
|
+
name: ( localize(6313, "French (Canada)"))
|
|
78
78
|
},
|
|
79
79
|
['fr-FR']: {
|
|
80
|
-
name: ( localize(
|
|
80
|
+
name: ( localize(6314, "French (France)"))
|
|
81
81
|
},
|
|
82
82
|
['hi-IN']: {
|
|
83
|
-
name: ( localize(
|
|
83
|
+
name: ( localize(6315, "Hindi (India)"))
|
|
84
84
|
},
|
|
85
85
|
['it-IT']: {
|
|
86
|
-
name: ( localize(
|
|
86
|
+
name: ( localize(6316, "Italian (Italy)"))
|
|
87
87
|
},
|
|
88
88
|
['ja-JP']: {
|
|
89
|
-
name: ( localize(
|
|
89
|
+
name: ( localize(6317, "Japanese (Japan)"))
|
|
90
90
|
},
|
|
91
91
|
['ko-KR']: {
|
|
92
|
-
name: ( localize(
|
|
92
|
+
name: ( localize(6318, "Korean (South Korea)"))
|
|
93
93
|
},
|
|
94
94
|
['nl-NL']: {
|
|
95
|
-
name: ( localize(
|
|
95
|
+
name: ( localize(6319, "Dutch (Netherlands)"))
|
|
96
96
|
},
|
|
97
97
|
['pt-PT']: {
|
|
98
|
-
name: ( localize(
|
|
98
|
+
name: ( localize(6320, "Portuguese (Portugal)"))
|
|
99
99
|
},
|
|
100
100
|
['pt-BR']: {
|
|
101
|
-
name: ( localize(
|
|
101
|
+
name: ( localize(6321, "Portuguese (Brazil)"))
|
|
102
102
|
},
|
|
103
103
|
['ru-RU']: {
|
|
104
|
-
name: ( localize(
|
|
104
|
+
name: ( localize(6322, "Russian (Russia)"))
|
|
105
105
|
},
|
|
106
106
|
['sv-SE']: {
|
|
107
|
-
name: ( localize(
|
|
107
|
+
name: ( localize(6323, "Swedish (Sweden)"))
|
|
108
108
|
},
|
|
109
109
|
['tr-TR']: {
|
|
110
|
-
name: ( localize(
|
|
110
|
+
name: ( localize(6324, "Turkish (Türkiye)"))
|
|
111
111
|
},
|
|
112
112
|
['zh-CN']: {
|
|
113
|
-
name: ( localize(
|
|
113
|
+
name: ( localize(6325, "Chinese (Simplified, China)"))
|
|
114
114
|
},
|
|
115
115
|
['zh-HK']: {
|
|
116
|
-
name: ( localize(
|
|
116
|
+
name: ( localize(6326, "Chinese (Traditional, Hong Kong)"))
|
|
117
117
|
},
|
|
118
118
|
['zh-TW']: {
|
|
119
|
-
name: ( localize(
|
|
119
|
+
name: ( localize(6327, "Chinese (Traditional, Taiwan)"))
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
function speechLanguageConfigToLanguage(config, lang = language) {
|
|
@@ -73,11 +73,11 @@ let TerminalEditorInput = class TerminalEditorInput extends EditorInput {
|
|
|
73
73
|
async confirm(terminals) {
|
|
74
74
|
const { confirmed } = await this._dialogService.confirm({
|
|
75
75
|
type: Severity$1.Warning,
|
|
76
|
-
message: ( localize(
|
|
77
|
-
primaryButton: ( localize(
|
|
76
|
+
message: ( localize(8929, "Do you want to terminate running processes?")),
|
|
77
|
+
primaryButton: ( localize(8930, "&&Terminate")),
|
|
78
78
|
detail: terminals.length > 1 ?
|
|
79
|
-
( (terminals.map(terminal => terminal.editor.getName()))).join('\n') + '\n\n' + ( localize(
|
|
80
|
-
( localize(
|
|
79
|
+
( (terminals.map(terminal => terminal.editor.getName()))).join('\n') + '\n\n' + ( localize(8931, "Closing will terminate the running processes in the terminals.")) :
|
|
80
|
+
( localize(8932, "Closing will terminate the running processes in this terminal."))
|
|
81
81
|
});
|
|
82
82
|
return confirmed ? ConfirmResult.DONT_SAVE : ConfirmResult.CANCEL;
|
|
83
83
|
}
|