@codingame/monaco-vscode-api 1.83.2 → 1.83.3-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.d.ts +3 -3
- package/extensions.js +31 -33
- package/l10n.d.ts +4 -0
- package/l10n.js +10 -0
- package/missing-services.js +4 -2
- package/monaco-editor-treemending.patch +12268 -1070
- package/monaco-treemending.js +8 -2
- package/package.json +8 -1
- package/service-override/extensions.js +2 -2
- package/service-override/layout.js +2 -2
- package/tools/l10n.js +177 -0
- package/tools.js +22 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +2 -2
- package/vscode/src/vs/base/common/date.js +55 -55
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -10
- package/vscode/src/vs/base/common/tfIdf.js +137 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/commandsQuickAccess.js +23 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +115 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +112 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +334 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +10 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -2
- package/vscode/src/vs/platform/files/common/fileService.js +28 -37
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/files/common/io.js +2 -2
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +3 -9
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +300 -0
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +59 -0
- package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +212 -0
- package/vscode/src/vs/platform/request/common/request.js +2 -2
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -63
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +13 -32
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +2 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +3 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +38 -50
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +21 -53
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +4 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +4 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +6 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +4 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +1 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +2 -12
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +15 -9
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +2 -6
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +6 -28
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +60 -0
- package/vscode/src/vs/workbench/api/common/extHostChat.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -11
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +3 -7
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +2 -6
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +2 -7
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +9 -34
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +898 -68
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +7 -7
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +32 -38
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +103 -13
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +2 -2
- package/vscode/src/vs/workbench/browser/editor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +12 -27
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +2 -7
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +4 -7
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +42 -90
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +140 -272
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +115 -148
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +21 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +7 -19
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -26
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -17
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +60 -81
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -11
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +69 -34
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +58 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +3 -9
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +7 -11
- package/vscode/src/vs/workbench/browser/quickaccess.js +7 -3
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +186 -683
- package/vscode/src/vs/workbench/common/configuration.js +12 -15
- package/vscode/src/vs/workbench/common/contextkeys.js +272 -90
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -7
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +2 -6
- package/vscode/src/vs/workbench/common/editor.js +5 -5
- package/vscode/src/vs/workbench/common/theme.js +137 -527
- package/vscode/src/vs/workbench/common/views.js +4 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +15 -55
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +3 -8
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +22 -60
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +9 -15
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +18 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -10
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +5 -13
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +8 -27
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +5 -17
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +7 -20
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +63 -216
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +4 -7
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +5 -8
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +5 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +10 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +6 -15
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +5 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +3 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -13
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +26 -77
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -17
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +7 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +10 -29
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +25 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +13 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +56 -98
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +96 -180
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +25 -79
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -8
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +56 -19
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +76 -230
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -5
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -103
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +228 -99
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +5 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +15 -35
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +5 -8
- package/vscode/src/vs/workbench/contrib/files/common/files.js +27 -48
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -6
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +5 -8
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +112 -52
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +30 -96
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +42 -0
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +23 -29
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +3 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +13 -16
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +15 -34
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +12 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +26 -75
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +4 -19
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +4 -4
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +10 -41
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +26 -13
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +8 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +5 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +7 -28
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +21 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +21 -53
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +2 -5
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +113 -348
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +2 -5
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +31 -1
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +1 -4
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -5
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +4 -4
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +10 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +80 -296
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +6 -21
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +3 -6
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +24 -81
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +2 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +11 -17
- package/vscode/src/vs/workbench/services/language/common/languageService.js +23 -98
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -11
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -5
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +11 -23
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +2 -2
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +2 -7
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +2 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +16 -53
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +50 -1
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +25 -99
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -3
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +15 -3
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +2 -2
|
@@ -1,48 +1,123 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
2
|
import { MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
3
3
|
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
4
|
+
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
4
5
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
5
6
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
6
7
|
import { registerColor, editorWidgetBackground, editorWidgetBorder, widgetShadow, editorHoverHighlight, focusBorder, inputPlaceholderForeground, inputBackground, transparent, diffInserted, diffRemoved } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
7
8
|
import { Extensions } from '../../../common/configuration.js';
|
|
8
9
|
const IInlineChatService = ( createDecorator('IInlineChatService'));
|
|
10
|
+
( new RawContextKey(
|
|
11
|
+
'inlineChatHasProvider',
|
|
12
|
+
false,
|
|
13
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasProvider', "Whether a provider for interactive editors exists")
|
|
14
|
+
));
|
|
15
|
+
( new RawContextKey(
|
|
16
|
+
'inlineChatVisible',
|
|
17
|
+
false,
|
|
18
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatVisible', "Whether the interactive editor input is visible")
|
|
19
|
+
));
|
|
20
|
+
( new RawContextKey(
|
|
21
|
+
'inlineChatFocused',
|
|
22
|
+
false,
|
|
23
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatFocused', "Whether the interactive editor input is focused")
|
|
24
|
+
));
|
|
25
|
+
( new RawContextKey(
|
|
26
|
+
'inlineChatResponseFocused',
|
|
27
|
+
false,
|
|
28
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseFocused', "Whether the interactive widget's response is focused")
|
|
29
|
+
));
|
|
30
|
+
( new RawContextKey(
|
|
31
|
+
'inlineChatEmpty',
|
|
32
|
+
false,
|
|
33
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatEmpty', "Whether the interactive editor input is empty")
|
|
34
|
+
));
|
|
35
|
+
( new RawContextKey(
|
|
36
|
+
'inlineChatInnerCursorFirst',
|
|
37
|
+
false,
|
|
38
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorFirst', "Whether the cursor of the iteractive editor input is on the first line")
|
|
39
|
+
));
|
|
40
|
+
( new RawContextKey(
|
|
41
|
+
'inlineChatInnerCursorLast',
|
|
42
|
+
false,
|
|
43
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorLast', "Whether the cursor of the iteractive editor input is on the last line")
|
|
44
|
+
));
|
|
45
|
+
( new RawContextKey(
|
|
46
|
+
'inlineChatInnerCursorStart',
|
|
47
|
+
false,
|
|
48
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorStart', "Whether the cursor of the iteractive editor input is on the start of the input")
|
|
49
|
+
));
|
|
50
|
+
( new RawContextKey(
|
|
51
|
+
'inlineChatInnerCursorEnd',
|
|
52
|
+
false,
|
|
53
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInnerCursorEnd', "Whether the cursor of the iteractive editor input is on the end of the input")
|
|
54
|
+
));
|
|
55
|
+
( new RawContextKey(
|
|
56
|
+
'inlineChatMarkdownMessageCropState',
|
|
57
|
+
'not_cropped',
|
|
58
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatMarkdownMessageCropState', "Whether the interactive editor message is cropped, not cropped or expanded")
|
|
59
|
+
));
|
|
60
|
+
( new RawContextKey(
|
|
61
|
+
'inlineChatOuterCursorPosition',
|
|
62
|
+
'',
|
|
63
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatOuterCursorPosition', "Whether the cursor of the outer editor is above or below the interactive editor input")
|
|
64
|
+
));
|
|
65
|
+
( new RawContextKey(
|
|
66
|
+
'inlineChatHasActiveRequest',
|
|
67
|
+
false,
|
|
68
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasActiveRequest', "Whether interactive editor has an active request")
|
|
69
|
+
));
|
|
70
|
+
( new RawContextKey(
|
|
71
|
+
'inlineChatHasStashedSession',
|
|
72
|
+
false,
|
|
73
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatHasStashedSession', "Whether interactive editor has kept a session for quick restore")
|
|
74
|
+
));
|
|
75
|
+
( new RawContextKey(
|
|
76
|
+
'inlineChatLastResponseType',
|
|
77
|
+
undefined,
|
|
78
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseType', "What type was the last response of the current interactive editor session")
|
|
79
|
+
));
|
|
80
|
+
( new RawContextKey(
|
|
81
|
+
'inlineChatResponseTypes',
|
|
82
|
+
undefined,
|
|
83
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatResponseTypes', "What type was the responses have been receieved")
|
|
84
|
+
));
|
|
85
|
+
( new RawContextKey(
|
|
86
|
+
'inlineChatDidEdit',
|
|
87
|
+
undefined,
|
|
88
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDidEdit', "Whether interactive editor did change any code")
|
|
89
|
+
));
|
|
90
|
+
( new RawContextKey(
|
|
91
|
+
'inlineChatUserDidEdit',
|
|
92
|
+
undefined,
|
|
93
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatUserDidEdit', "Whether the user did changes ontop of the inline chat")
|
|
94
|
+
));
|
|
95
|
+
( new RawContextKey(
|
|
96
|
+
'inlineChatLastFeedbackKind',
|
|
97
|
+
'',
|
|
98
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatLastFeedbackKind', "The last kind of feedback that was provided")
|
|
99
|
+
));
|
|
100
|
+
( new RawContextKey(
|
|
101
|
+
'inlineChatDocumentChanged',
|
|
102
|
+
false,
|
|
103
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDocumentChanged', "Whether the document has changed concurrently")
|
|
104
|
+
));
|
|
9
105
|
MenuId.for('inlineChatWidget');
|
|
10
106
|
MenuId.for('inlineChatWidget.markdownMessage');
|
|
11
107
|
MenuId.for('inlineChatWidget.status');
|
|
12
108
|
MenuId.for('inlineChatWidget.feedback');
|
|
13
109
|
MenuId.for('inlineChatWidget.undo');
|
|
14
110
|
MenuId.for('inlineChatWidget.toggle');
|
|
15
|
-
registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
))
|
|
19
|
-
registerColor('
|
|
20
|
-
registerColor('
|
|
21
|
-
registerColor('
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
)),
|
|
25
|
-
registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localize('inlineChatInput.border', "Border color of the interactive editor input")));
|
|
26
|
-
registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, ( localize(
|
|
27
|
-
'inlineChatInput.focusBorder',
|
|
28
|
-
"Border color of the interactive editor input when focused"
|
|
29
|
-
)));
|
|
30
|
-
registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, ( localize(
|
|
31
|
-
'inlineChatInput.placeholderForeground',
|
|
32
|
-
"Foreground color of the interactive editor input placeholder"
|
|
33
|
-
)));
|
|
34
|
-
registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localize(
|
|
35
|
-
'inlineChatInput.background',
|
|
36
|
-
"Background color of the interactive editor input"
|
|
37
|
-
)));
|
|
38
|
-
registerColor('inlineChatDiff.inserted', { dark: ( transparent(diffInserted, .5)), light: ( transparent(diffInserted, .5)), hcDark: ( transparent(diffInserted, .5)), hcLight: ( transparent(diffInserted, .5)) }, ( localize(
|
|
39
|
-
'inlineChatDiff.inserted',
|
|
40
|
-
"Background color of inserted text in the interactive editor input"
|
|
41
|
-
)));
|
|
42
|
-
registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)), light: ( transparent(diffRemoved, .5)), hcDark: ( transparent(diffRemoved, .5)), hcLight: ( transparent(diffRemoved, .5)) }, ( localize(
|
|
43
|
-
'inlineChatDiff.removed',
|
|
44
|
-
"Background color of removed text in the interactive editor input"
|
|
45
|
-
)));
|
|
111
|
+
registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.background', "Background color of the interactive editor widget"));
|
|
112
|
+
registerColor('inlineChat.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.border', "Border color of the interactive editor widget"));
|
|
113
|
+
registerColor('inlineChat.shadow', { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.shadow', "Shadow color of the interactive editor widget"));
|
|
114
|
+
registerColor('inlineChat.regionHighlight', { dark: editorHoverHighlight, light: editorHoverHighlight, hcDark: editorHoverHighlight, hcLight: editorHoverHighlight }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChat.regionHighlight', "Background highlighting of the current interactive region. Must be transparent."), true);
|
|
115
|
+
registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.border', "Border color of the interactive editor input"));
|
|
116
|
+
registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.focusBorder', "Border color of the interactive editor input when focused"));
|
|
117
|
+
registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.placeholderForeground', "Foreground color of the interactive editor input placeholder"));
|
|
118
|
+
registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatInput.background', "Background color of the interactive editor input"));
|
|
119
|
+
registerColor('inlineChatDiff.inserted', { dark: ( transparent(diffInserted, .5)), light: ( transparent(diffInserted, .5)), hcDark: ( transparent(diffInserted, .5)), hcLight: ( transparent(diffInserted, .5)) }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDiff.inserted', "Background color of inserted text in the interactive editor input"));
|
|
120
|
+
registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)), light: ( transparent(diffRemoved, .5)), hcDark: ( transparent(diffRemoved, .5)), hcLight: ( transparent(diffRemoved, .5)) }, localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'inlineChatDiff.removed', "Background color of removed text in the interactive editor input"));
|
|
46
121
|
( Registry.as(Extensions.ConfigurationMigration)).registerConfigurationMigrations([{
|
|
47
122
|
key: 'interactiveEditor.editMode', migrateFn: (value) => {
|
|
48
123
|
return [['inlineChat.mode', { value: value }]];
|
|
@@ -52,33 +127,18 @@ registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)),
|
|
|
52
127
|
id: 'editor',
|
|
53
128
|
properties: {
|
|
54
129
|
'inlineChat.mode': {
|
|
55
|
-
description: (
|
|
56
|
-
'mode',
|
|
57
|
-
"Configure if changes crafted in the interactive editor are applied directly to the document or are previewed first."
|
|
58
|
-
)),
|
|
130
|
+
description: localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode', "Configure if changes crafted in the interactive editor are applied directly to the document or are previewed first."),
|
|
59
131
|
default: "livePreview" ,
|
|
60
132
|
type: 'string',
|
|
61
133
|
enum: ["livePreview" , "preview" , "live" ],
|
|
62
134
|
markdownEnumDescriptions: [
|
|
63
|
-
(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
)),
|
|
67
|
-
( localize(
|
|
68
|
-
'mode.preview',
|
|
69
|
-
"Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."
|
|
70
|
-
)),
|
|
71
|
-
( localize(
|
|
72
|
-
'mode.live',
|
|
73
|
-
"Changes are applied directly to the document but can be highlighted via inline diffs. Ending a session will keep the changes."
|
|
74
|
-
)),
|
|
135
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.livePreview', "Changes are applied directly to the document and are highlighted visually via inline or side-by-side diffs. Ending a session will keep the changes."),
|
|
136
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.preview', "Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."),
|
|
137
|
+
localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'mode.live', "Changes are applied directly to the document but can be highlighted via inline diffs. Ending a session will keep the changes."),
|
|
75
138
|
]
|
|
76
139
|
},
|
|
77
140
|
'inlineChat.showDiff': {
|
|
78
|
-
description: (
|
|
79
|
-
'showDiff',
|
|
80
|
-
"Enable/disable showing the diff when edits are generated. Works only with inlineChat.mode equal to live or livePreview."
|
|
81
|
-
)),
|
|
141
|
+
description: localizeWithPath('vs/workbench/contrib/inlineChat/common/inlineChat', 'showDiff', "Enable/disable showing the diff when edits are generated. Works only with inlineChat.mode equal to live or livePreview."),
|
|
82
142
|
default: true,
|
|
83
143
|
type: 'boolean'
|
|
84
144
|
}
|
|
@@ -8,7 +8,7 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super({
|
|
10
10
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
11
|
-
title: { value:
|
|
11
|
+
title: { value: nls.localizeWithPath('vs/workbench/contrib/keybindings/browser/keybindings.contribution', 'toggleKeybindingsLog', "Toggle Keyboard Shortcuts Troubleshooting"), original: 'Toggle Keyboard Shortcuts Troubleshooting' },
|
|
12
12
|
category: Categories.Developer,
|
|
13
13
|
f1: true
|
|
14
14
|
});
|
|
@@ -3,7 +3,7 @@ import { assertFn } from 'monaco-editor/esm/vs/base/common/assert.js';
|
|
|
3
3
|
import { autorun } from 'monaco-editor/esm/vs/base/common/observable.js';
|
|
4
4
|
import { isEqual } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
5
5
|
import { isDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
6
|
-
import {
|
|
6
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
7
7
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
8
8
|
import { IFileService } from 'monaco-editor/esm/vs/platform/files/common/files.js';
|
|
9
9
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
@@ -59,7 +59,7 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
|
|
|
59
59
|
return capabilities;
|
|
60
60
|
}
|
|
61
61
|
getName() {
|
|
62
|
-
return (
|
|
62
|
+
return localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInput', 'name', "Merging: {0}", super.getName());
|
|
63
63
|
}
|
|
64
64
|
async resolve() {
|
|
65
65
|
if (!this._inputModel) {
|
|
@@ -8,7 +8,7 @@ import { basename, isEqual } from 'monaco-editor/esm/vs/base/common/resources.js
|
|
|
8
8
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
9
9
|
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
10
10
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
11
|
-
import {
|
|
11
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
12
12
|
import '../../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
13
13
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
14
14
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
@@ -101,29 +101,18 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
101
101
|
if (someDirty) {
|
|
102
102
|
const isMany = inputModels.length > 1;
|
|
103
103
|
const message = isMany
|
|
104
|
-
? (
|
|
105
|
-
'
|
|
106
|
-
'Do you want keep the merge result of {0} files?',
|
|
107
|
-
inputModels.length
|
|
108
|
-
))
|
|
109
|
-
: ( localize(
|
|
110
|
-
'message1',
|
|
111
|
-
'Do you want keep the merge result of {0}?',
|
|
112
|
-
basename(inputModels[0].model.resultTextModel.uri)
|
|
113
|
-
));
|
|
104
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'messageN', 'Do you want keep the merge result of {0} files?', inputModels.length)
|
|
105
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'message1', 'Do you want keep the merge result of {0}?', basename(inputModels[0].model.resultTextModel.uri));
|
|
114
106
|
const hasUnhandledConflicts = ( inputModels.some((m) => m.model.hasUnhandledConflicts.get()));
|
|
115
107
|
const buttons = [
|
|
116
108
|
{
|
|
117
109
|
label: hasUnhandledConflicts ?
|
|
118
|
-
(
|
|
119
|
-
|
|
120
|
-
"&&Save With Conflicts"
|
|
121
|
-
)) :
|
|
122
|
-
( localize({ key: 'save', comment: ['&& denotes a mnemonic'] }, "&&Save")),
|
|
110
|
+
localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'saveWithConflict', comment: ['&& denotes a mnemonic'] }, "&&Save With Conflicts") :
|
|
111
|
+
localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'save', comment: ['&& denotes a mnemonic'] }, "&&Save"),
|
|
123
112
|
run: () => 0
|
|
124
113
|
},
|
|
125
114
|
{
|
|
126
|
-
label: (
|
|
115
|
+
label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'discard', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save"),
|
|
127
116
|
run: () => 1
|
|
128
117
|
}
|
|
129
118
|
];
|
|
@@ -132,17 +121,11 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
132
121
|
message,
|
|
133
122
|
detail: hasUnhandledConflicts
|
|
134
123
|
? isMany
|
|
135
|
-
? (
|
|
136
|
-
|
|
137
|
-
"The files contain unhandled conflicts. The merge results will be lost if you don't save them."
|
|
138
|
-
))
|
|
139
|
-
: ( localize(
|
|
140
|
-
'detail1Conflicts',
|
|
141
|
-
"The file contains unhandled conflicts. The merge result will be lost if you don't save it."
|
|
142
|
-
))
|
|
124
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detailNConflicts', "The files contain unhandled conflicts. The merge results will be lost if you don't save them.")
|
|
125
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detail1Conflicts', "The file contains unhandled conflicts. The merge result will be lost if you don't save it.")
|
|
143
126
|
: isMany
|
|
144
|
-
? (
|
|
145
|
-
: (
|
|
127
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detailN', "The merge results will be lost if you don't save them.")
|
|
128
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'detail1', "The merge result will be lost if you don't save it."),
|
|
146
129
|
buttons,
|
|
147
130
|
cancelButton: {
|
|
148
131
|
run: () => 2
|
|
@@ -167,15 +150,9 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
167
150
|
}
|
|
168
151
|
(async () => {
|
|
169
152
|
const { confirmed } = await this.dialogService.confirm({
|
|
170
|
-
message: (
|
|
171
|
-
detail: (
|
|
172
|
-
|
|
173
|
-
"This will write the merge result to the original file and close the merge editor."
|
|
174
|
-
)),
|
|
175
|
-
primaryButton: ( localize(
|
|
176
|
-
{ key: 'acceptMerge', comment: ['&& denotes a mnemonic'] },
|
|
177
|
-
'&&Accept Merge'
|
|
178
|
-
))
|
|
153
|
+
message: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'saveTempFile.message', "Do you want to accept the merge result?"),
|
|
154
|
+
detail: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'saveTempFile.detail', "This will write the merge result to the original file and close the merge editor."),
|
|
155
|
+
primaryButton: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'acceptMerge', comment: ['&& denotes a mnemonic'] }, '&&Accept Merge')
|
|
179
156
|
});
|
|
180
157
|
if (confirmed) {
|
|
181
158
|
await this.accept();
|
|
@@ -200,7 +177,7 @@ let WorkspaceMergeEditorModeFactory = class WorkspaceMergeEditorModeFactory {
|
|
|
200
177
|
this._textModelService = _textModelService;
|
|
201
178
|
this.textFileService = textFileService;
|
|
202
179
|
}
|
|
203
|
-
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', (
|
|
180
|
+
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'merge-editor.source', "Before Resolving Conflicts In Merge Editor")); }
|
|
204
181
|
async createInputModel(args) {
|
|
205
182
|
const store = ( new DisposableStore());
|
|
206
183
|
let resultTextFileModel = undefined;
|
|
@@ -309,53 +286,27 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
309
286
|
const someUnhandledConflicts = ( inputModels.some(m => m.model.hasUnhandledConflicts.get()));
|
|
310
287
|
if (someDirty) {
|
|
311
288
|
const message = isMany
|
|
312
|
-
? (
|
|
313
|
-
'workspace.
|
|
314
|
-
'Do you want to save the changes you made to {0} files?',
|
|
315
|
-
inputModels.length
|
|
316
|
-
))
|
|
317
|
-
: ( localize(
|
|
318
|
-
'workspace.message1',
|
|
319
|
-
'Do you want to save the changes you made to {0}?',
|
|
320
|
-
basename(inputModels[0].resultUri)
|
|
321
|
-
));
|
|
289
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.messageN', 'Do you want to save the changes you made to {0} files?', inputModels.length)
|
|
290
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.message1', 'Do you want to save the changes you made to {0}?', basename(inputModels[0].resultUri));
|
|
322
291
|
const { result } = await this._dialogService.prompt({
|
|
323
292
|
type: Severity.Info,
|
|
324
293
|
message,
|
|
325
294
|
detail: someUnhandledConflicts ?
|
|
326
295
|
isMany
|
|
327
|
-
? (
|
|
328
|
-
'workspace.
|
|
329
|
-
"The files contain unhandled conflicts. Your changes will be lost if you don't save them."
|
|
330
|
-
))
|
|
331
|
-
: ( localize(
|
|
332
|
-
'workspace.detail1.unhandled',
|
|
333
|
-
"The file contains unhandled conflicts. Your changes will be lost if you don't save them."
|
|
334
|
-
))
|
|
296
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.unhandled', "The files contain unhandled conflicts. Your changes will be lost if you don't save them.")
|
|
297
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.unhandled', "The file contains unhandled conflicts. Your changes will be lost if you don't save them.")
|
|
335
298
|
: isMany
|
|
336
|
-
? (
|
|
337
|
-
|
|
338
|
-
"Your changes will be lost if you don't save them."
|
|
339
|
-
))
|
|
340
|
-
: ( localize(
|
|
341
|
-
'workspace.detail1.handled',
|
|
342
|
-
"Your changes will be lost if you don't save them."
|
|
343
|
-
)),
|
|
299
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.handled', "Your changes will be lost if you don't save them.")
|
|
300
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.handled', "Your changes will be lost if you don't save them."),
|
|
344
301
|
buttons: [
|
|
345
302
|
{
|
|
346
303
|
label: someUnhandledConflicts
|
|
347
|
-
? (
|
|
348
|
-
{ key: 'workspace.
|
|
349
|
-
'&&Save with Conflicts'
|
|
350
|
-
))
|
|
351
|
-
: ( localize({ key: 'workspace.save', comment: ['&& denotes a mnemonic'] }, '&&Save')),
|
|
304
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.saveWithConflict', comment: ['&& denotes a mnemonic'] }, '&&Save with Conflicts')
|
|
305
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.save', comment: ['&& denotes a mnemonic'] }, '&&Save'),
|
|
352
306
|
run: () => 0
|
|
353
307
|
},
|
|
354
308
|
{
|
|
355
|
-
label: (
|
|
356
|
-
{ key: 'workspace.doNotSave', comment: ['&& denotes a mnemonic'] },
|
|
357
|
-
"Do&&n't Save"
|
|
358
|
-
)),
|
|
309
|
+
label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.doNotSave', comment: ['&& denotes a mnemonic'] }, "Do&&n't Save"),
|
|
359
310
|
run: () => 1
|
|
360
311
|
}
|
|
361
312
|
],
|
|
@@ -368,34 +319,17 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
368
319
|
else if (someUnhandledConflicts && !this._storageService.getBoolean(StorageCloseWithConflicts, 0 , false)) {
|
|
369
320
|
const { confirmed, checkboxChecked } = await this._dialogService.confirm({
|
|
370
321
|
message: isMany
|
|
371
|
-
? (
|
|
372
|
-
'workspace.
|
|
373
|
-
'Do you want to close {0} merge editors?',
|
|
374
|
-
inputModels.length
|
|
375
|
-
))
|
|
376
|
-
: ( localize(
|
|
377
|
-
'workspace.message1.nonDirty',
|
|
378
|
-
'Do you want to close the merge editor for {0}?',
|
|
379
|
-
basename(inputModels[0].resultUri)
|
|
380
|
-
)),
|
|
322
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.messageN.nonDirty', 'Do you want to close {0} merge editors?', inputModels.length)
|
|
323
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.message1.nonDirty', 'Do you want to close the merge editor for {0}?', basename(inputModels[0].resultUri)),
|
|
381
324
|
detail: someUnhandledConflicts ?
|
|
382
325
|
isMany
|
|
383
|
-
? (
|
|
384
|
-
'workspace.
|
|
385
|
-
"The files contain unhandled conflicts."
|
|
386
|
-
))
|
|
387
|
-
: ( localize(
|
|
388
|
-
'workspace.detail1.unhandled.nonDirty',
|
|
389
|
-
"The file contains unhandled conflicts."
|
|
390
|
-
))
|
|
326
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detailN.unhandled.nonDirty', "The files contain unhandled conflicts.")
|
|
327
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'workspace.detail1.unhandled.nonDirty', "The file contains unhandled conflicts.")
|
|
391
328
|
: undefined,
|
|
392
329
|
primaryButton: someUnhandledConflicts
|
|
393
|
-
? (
|
|
394
|
-
{ key: 'workspace.
|
|
395
|
-
|
|
396
|
-
))
|
|
397
|
-
: ( localize({ key: 'workspace.close', comment: ['&& denotes a mnemonic'] }, '&&Close')),
|
|
398
|
-
checkbox: { label: ( localize('noMoreWarn', "Don't ask again")) }
|
|
330
|
+
? localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.closeWithConflicts', comment: ['&& denotes a mnemonic'] }, '&&Close with Conflicts')
|
|
331
|
+
: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', { key: 'workspace.close', comment: ['&& denotes a mnemonic'] }, '&&Close'),
|
|
332
|
+
checkbox: { label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel', 'noMoreWarn', "Don't ask again") }
|
|
399
333
|
});
|
|
400
334
|
if (checkboxChecked) {
|
|
401
335
|
this._storageService.store(StorageCloseWithConflicts, true, 0 , 0 );
|
|
@@ -4,7 +4,7 @@ import { BugIndicatingError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
|
4
4
|
import { derived, waitForState, keepObserved, autorunHandleChanges, transaction, observableValue } from 'monaco-editor/esm/vs/base/common/observable.js';
|
|
5
5
|
import { Range } from 'monaco-editor/esm/vs/editor/common/core/range.js';
|
|
6
6
|
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
7
|
-
import {
|
|
7
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
8
8
|
import { IUndoRedoService, UndoRedoGroup } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
|
|
9
9
|
import { EditorModel } from '../../../../common/editor/editorModel.js';
|
|
10
10
|
import { LineRange } from './lineRange.js';
|
|
@@ -362,7 +362,7 @@ let MergeEditorModel = class MergeEditorModel extends EditorModel {
|
|
|
362
362
|
type: 0 ,
|
|
363
363
|
resource: this.resultTextModel.uri,
|
|
364
364
|
code: 'setInputHandled',
|
|
365
|
-
label: (
|
|
365
|
+
label: localizeWithPath('vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel', 'setInputHandled', "Set Input Handled"),
|
|
366
366
|
redo() {
|
|
367
367
|
const model = modelRef.deref();
|
|
368
368
|
const data = dataRef.deref();
|
|
@@ -571,7 +571,7 @@ class MarkAsHandledUndoRedoElement {
|
|
|
571
571
|
this.input1Handled = input1Handled;
|
|
572
572
|
this.input2Handled = input2Handled;
|
|
573
573
|
this.code = 'undoMarkAsHandled';
|
|
574
|
-
this.label = (
|
|
574
|
+
this.label = localizeWithPath('vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel', 'undoMarkAsHandled', 'Undo Mark As Handled');
|
|
575
575
|
this.type = 0 ;
|
|
576
576
|
}
|
|
577
577
|
redo() {
|
|
@@ -1,2 +1,44 @@
|
|
|
1
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
+
import { RawContextKey } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
3
|
+
( new RawContextKey(
|
|
4
|
+
'isMergeEditor',
|
|
5
|
+
false,
|
|
6
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'is', 'The editor is a merge editor') }
|
|
7
|
+
));
|
|
8
|
+
( new RawContextKey(
|
|
9
|
+
'isMergeResultEditor',
|
|
10
|
+
false,
|
|
11
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'isr', 'The editor is a the result editor of a merge editor.') }
|
|
12
|
+
));
|
|
13
|
+
( new RawContextKey(
|
|
14
|
+
'mergeEditorLayout',
|
|
15
|
+
'mixed',
|
|
16
|
+
{ type: 'string', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'editorLayout', 'The layout mode of a merge editor') }
|
|
17
|
+
));
|
|
18
|
+
( new RawContextKey(
|
|
19
|
+
'mergeEditorShowBase',
|
|
20
|
+
false,
|
|
21
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'showBase', 'If the merge editor shows the base version') }
|
|
22
|
+
));
|
|
23
|
+
( new RawContextKey(
|
|
24
|
+
'mergeEditorShowBaseAtTop',
|
|
25
|
+
false,
|
|
26
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'showBaseAtTop', 'If base should be shown at the top') }
|
|
27
|
+
));
|
|
28
|
+
( new RawContextKey(
|
|
29
|
+
'mergeEditorShowNonConflictingChanges',
|
|
30
|
+
false,
|
|
31
|
+
{ type: 'boolean', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'showNonConflictingChanges', 'If the merge editor shows non-conflicting changes') }
|
|
32
|
+
));
|
|
33
|
+
( new RawContextKey(
|
|
34
|
+
'mergeEditorBaseUri',
|
|
35
|
+
'',
|
|
36
|
+
{ type: 'string', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'baseUri', 'The uri of the baser of a merge editor') }
|
|
37
|
+
));
|
|
38
|
+
( new RawContextKey(
|
|
39
|
+
'mergeEditorResultUri',
|
|
40
|
+
'',
|
|
41
|
+
{ type: 'string', description: localizeWithPath('vs/workbench/contrib/mergeEditor/common/mergeEditor', 'resultUri', 'The uri of the result of a merge editor') }
|
|
42
|
+
));
|
|
1
43
|
const StorageCloseWithConflicts = 'mergeEditorCloseWithConflicts';
|
|
2
44
|
export { StorageCloseWithConflicts };
|