@codingame/monaco-vscode-api 1.83.5 → 1.83.7
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/assets.js +3 -14
- package/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +26330 -3867
- package/monaco.js +4 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -1,123 +1,67 @@
|
|
|
1
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';
|
|
5
4
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
6
5
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
7
6
|
import { registerColor, editorWidgetBackground, editorWidgetBorder, widgetShadow, editorHoverHighlight, focusBorder, inputPlaceholderForeground, inputBackground, transparent, diffInserted, diffRemoved } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
8
7
|
import { Extensions } from '../../../common/configuration.js';
|
|
9
8
|
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
|
-
));
|
|
105
9
|
MenuId.for('inlineChatWidget');
|
|
106
10
|
MenuId.for('inlineChatWidget.markdownMessage');
|
|
107
11
|
MenuId.for('inlineChatWidget.status');
|
|
108
12
|
MenuId.for('inlineChatWidget.feedback');
|
|
109
13
|
MenuId.for('inlineChatWidget.undo');
|
|
110
14
|
MenuId.for('inlineChatWidget.toggle');
|
|
111
|
-
registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, localizeWithPath(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
registerColor('
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
15
|
+
registerColor('inlineChat.background', { dark: editorWidgetBackground, light: editorWidgetBackground, hcDark: editorWidgetBackground, hcLight: editorWidgetBackground }, ( localizeWithPath(
|
|
16
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
17
|
+
'inlineChat.background',
|
|
18
|
+
"Background color of the interactive editor widget"
|
|
19
|
+
)));
|
|
20
|
+
registerColor('inlineChat.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localizeWithPath(
|
|
21
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
22
|
+
'inlineChat.border',
|
|
23
|
+
"Border color of the interactive editor widget"
|
|
24
|
+
)));
|
|
25
|
+
registerColor('inlineChat.shadow', { dark: widgetShadow, light: widgetShadow, hcDark: widgetShadow, hcLight: widgetShadow }, ( localizeWithPath(
|
|
26
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
27
|
+
'inlineChat.shadow',
|
|
28
|
+
"Shadow color of the interactive editor widget"
|
|
29
|
+
)));
|
|
30
|
+
registerColor('inlineChat.regionHighlight', { dark: editorHoverHighlight, light: editorHoverHighlight, hcDark: editorHoverHighlight, hcLight: editorHoverHighlight }, ( localizeWithPath(
|
|
31
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
32
|
+
'inlineChat.regionHighlight',
|
|
33
|
+
"Background highlighting of the current interactive region. Must be transparent."
|
|
34
|
+
)), true);
|
|
35
|
+
registerColor('inlineChatInput.border', { dark: editorWidgetBorder, light: editorWidgetBorder, hcDark: editorWidgetBorder, hcLight: editorWidgetBorder }, ( localizeWithPath(
|
|
36
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
37
|
+
'inlineChatInput.border',
|
|
38
|
+
"Border color of the interactive editor input"
|
|
39
|
+
)));
|
|
40
|
+
registerColor('inlineChatInput.focusBorder', { dark: focusBorder, light: focusBorder, hcDark: focusBorder, hcLight: focusBorder }, ( localizeWithPath(
|
|
41
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
42
|
+
'inlineChatInput.focusBorder',
|
|
43
|
+
"Border color of the interactive editor input when focused"
|
|
44
|
+
)));
|
|
45
|
+
registerColor('inlineChatInput.placeholderForeground', { dark: inputPlaceholderForeground, light: inputPlaceholderForeground, hcDark: inputPlaceholderForeground, hcLight: inputPlaceholderForeground }, ( localizeWithPath(
|
|
46
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
47
|
+
'inlineChatInput.placeholderForeground',
|
|
48
|
+
"Foreground color of the interactive editor input placeholder"
|
|
49
|
+
)));
|
|
50
|
+
registerColor('inlineChatInput.background', { dark: inputBackground, light: inputBackground, hcDark: inputBackground, hcLight: inputBackground }, ( localizeWithPath(
|
|
51
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
52
|
+
'inlineChatInput.background',
|
|
53
|
+
"Background color of the interactive editor input"
|
|
54
|
+
)));
|
|
55
|
+
registerColor('inlineChatDiff.inserted', { dark: ( transparent(diffInserted, .5)), light: ( transparent(diffInserted, .5)), hcDark: ( transparent(diffInserted, .5)), hcLight: ( transparent(diffInserted, .5)) }, ( localizeWithPath(
|
|
56
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
57
|
+
'inlineChatDiff.inserted',
|
|
58
|
+
"Background color of inserted text in the interactive editor input"
|
|
59
|
+
)));
|
|
60
|
+
registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)), light: ( transparent(diffRemoved, .5)), hcDark: ( transparent(diffRemoved, .5)), hcLight: ( transparent(diffRemoved, .5)) }, ( localizeWithPath(
|
|
61
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
62
|
+
'inlineChatDiff.removed',
|
|
63
|
+
"Background color of removed text in the interactive editor input"
|
|
64
|
+
)));
|
|
121
65
|
( Registry.as(Extensions.ConfigurationMigration)).registerConfigurationMigrations([{
|
|
122
66
|
key: 'interactiveEditor.editMode', migrateFn: (value) => {
|
|
123
67
|
return [['inlineChat.mode', { value: value }]];
|
|
@@ -127,18 +71,38 @@ registerColor('inlineChatDiff.removed', { dark: ( transparent(diffRemoved, .5)),
|
|
|
127
71
|
id: 'editor',
|
|
128
72
|
properties: {
|
|
129
73
|
'inlineChat.mode': {
|
|
130
|
-
description: localizeWithPath(
|
|
74
|
+
description: ( localizeWithPath(
|
|
75
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
76
|
+
'mode',
|
|
77
|
+
"Configure if changes crafted in the interactive editor are applied directly to the document or are previewed first."
|
|
78
|
+
)),
|
|
131
79
|
default: "livePreview" ,
|
|
132
80
|
type: 'string',
|
|
133
81
|
enum: ["livePreview" , "preview" , "live" ],
|
|
134
82
|
markdownEnumDescriptions: [
|
|
135
|
-
localizeWithPath(
|
|
136
|
-
|
|
137
|
-
|
|
83
|
+
( localizeWithPath(
|
|
84
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
85
|
+
'mode.livePreview',
|
|
86
|
+
"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."
|
|
87
|
+
)),
|
|
88
|
+
( localizeWithPath(
|
|
89
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
90
|
+
'mode.preview',
|
|
91
|
+
"Changes are previewed only and need to be accepted via the apply button. Ending a session will discard the changes."
|
|
92
|
+
)),
|
|
93
|
+
( localizeWithPath(
|
|
94
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
95
|
+
'mode.live',
|
|
96
|
+
"Changes are applied directly to the document but can be highlighted via inline diffs. Ending a session will keep the changes."
|
|
97
|
+
)),
|
|
138
98
|
]
|
|
139
99
|
},
|
|
140
100
|
'inlineChat.showDiff': {
|
|
141
|
-
description: localizeWithPath(
|
|
101
|
+
description: ( localizeWithPath(
|
|
102
|
+
'vs/workbench/contrib/inlineChat/common/inlineChat',
|
|
103
|
+
'showDiff',
|
|
104
|
+
"Enable/disable showing the diff when edits are generated. Works only with inlineChat.mode equal to live or livePreview."
|
|
105
|
+
)),
|
|
142
106
|
default: true,
|
|
143
107
|
type: 'boolean'
|
|
144
108
|
}
|
|
@@ -8,7 +8,11 @@ class ToggleKeybindingsLogAction extends Action2 {
|
|
|
8
8
|
constructor() {
|
|
9
9
|
super({
|
|
10
10
|
id: 'workbench.action.toggleKeybindingsLog',
|
|
11
|
-
title: { value: nls.localizeWithPath(
|
|
11
|
+
title: { value: ( nls.localizeWithPath(
|
|
12
|
+
'vs/workbench/contrib/keybindings/browser/keybindings.contribution',
|
|
13
|
+
'toggleKeybindingsLog',
|
|
14
|
+
"Toggle Keyboard Shortcuts Troubleshooting"
|
|
15
|
+
)), original: 'Toggle Keyboard Shortcuts Troubleshooting' },
|
|
12
16
|
category: Categories.Developer,
|
|
13
17
|
f1: true
|
|
14
18
|
});
|
|
@@ -59,7 +59,12 @@ let MergeEditorInput = class MergeEditorInput extends AbstractTextResourceEditor
|
|
|
59
59
|
return capabilities;
|
|
60
60
|
}
|
|
61
61
|
getName() {
|
|
62
|
-
return
|
|
62
|
+
return ( localizeWithPath(
|
|
63
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInput',
|
|
64
|
+
'name',
|
|
65
|
+
"Merging: {0}",
|
|
66
|
+
super.getName()
|
|
67
|
+
));
|
|
63
68
|
}
|
|
64
69
|
async resolve() {
|
|
65
70
|
if (!this._inputModel) {
|
|
@@ -101,18 +101,40 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
101
101
|
if (someDirty) {
|
|
102
102
|
const isMany = inputModels.length > 1;
|
|
103
103
|
const message = isMany
|
|
104
|
-
? localizeWithPath(
|
|
105
|
-
|
|
104
|
+
? ( localizeWithPath(
|
|
105
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
106
|
+
'messageN',
|
|
107
|
+
'Do you want keep the merge result of {0} files?',
|
|
108
|
+
inputModels.length
|
|
109
|
+
))
|
|
110
|
+
: ( localizeWithPath(
|
|
111
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
112
|
+
'message1',
|
|
113
|
+
'Do you want keep the merge result of {0}?',
|
|
114
|
+
basename(inputModels[0].model.resultTextModel.uri)
|
|
115
|
+
));
|
|
106
116
|
const hasUnhandledConflicts = ( inputModels.some((m) => m.model.hasUnhandledConflicts.get()));
|
|
107
117
|
const buttons = [
|
|
108
118
|
{
|
|
109
119
|
label: hasUnhandledConflicts ?
|
|
110
|
-
localizeWithPath(
|
|
111
|
-
|
|
120
|
+
( localizeWithPath(
|
|
121
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
122
|
+
{ key: 'saveWithConflict', comment: ['&& denotes a mnemonic'] },
|
|
123
|
+
"&&Save With Conflicts"
|
|
124
|
+
)) :
|
|
125
|
+
( localizeWithPath(
|
|
126
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
127
|
+
{ key: 'save', comment: ['&& denotes a mnemonic'] },
|
|
128
|
+
"&&Save"
|
|
129
|
+
)),
|
|
112
130
|
run: () => 0
|
|
113
131
|
},
|
|
114
132
|
{
|
|
115
|
-
label: localizeWithPath(
|
|
133
|
+
label: ( localizeWithPath(
|
|
134
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
135
|
+
{ key: 'discard', comment: ['&& denotes a mnemonic'] },
|
|
136
|
+
"Do&&n't Save"
|
|
137
|
+
)),
|
|
116
138
|
run: () => 1
|
|
117
139
|
}
|
|
118
140
|
];
|
|
@@ -121,11 +143,27 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
121
143
|
message,
|
|
122
144
|
detail: hasUnhandledConflicts
|
|
123
145
|
? isMany
|
|
124
|
-
? localizeWithPath(
|
|
125
|
-
|
|
146
|
+
? ( localizeWithPath(
|
|
147
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
148
|
+
'detailNConflicts',
|
|
149
|
+
"The files contain unhandled conflicts. The merge results will be lost if you don't save them."
|
|
150
|
+
))
|
|
151
|
+
: ( localizeWithPath(
|
|
152
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
153
|
+
'detail1Conflicts',
|
|
154
|
+
"The file contains unhandled conflicts. The merge result will be lost if you don't save it."
|
|
155
|
+
))
|
|
126
156
|
: isMany
|
|
127
|
-
? localizeWithPath(
|
|
128
|
-
|
|
157
|
+
? ( localizeWithPath(
|
|
158
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
159
|
+
'detailN',
|
|
160
|
+
"The merge results will be lost if you don't save them."
|
|
161
|
+
))
|
|
162
|
+
: ( localizeWithPath(
|
|
163
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
164
|
+
'detail1',
|
|
165
|
+
"The merge result will be lost if you don't save it."
|
|
166
|
+
)),
|
|
129
167
|
buttons,
|
|
130
168
|
cancelButton: {
|
|
131
169
|
run: () => 2
|
|
@@ -150,9 +188,21 @@ let TempFileMergeEditorInputModel = class TempFileMergeEditorInputModel extends
|
|
|
150
188
|
}
|
|
151
189
|
(async () => {
|
|
152
190
|
const { confirmed } = await this.dialogService.confirm({
|
|
153
|
-
message: localizeWithPath(
|
|
154
|
-
|
|
155
|
-
|
|
191
|
+
message: ( localizeWithPath(
|
|
192
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
193
|
+
'saveTempFile.message',
|
|
194
|
+
"Do you want to accept the merge result?"
|
|
195
|
+
)),
|
|
196
|
+
detail: ( localizeWithPath(
|
|
197
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
198
|
+
'saveTempFile.detail',
|
|
199
|
+
"This will write the merge result to the original file and close the merge editor."
|
|
200
|
+
)),
|
|
201
|
+
primaryButton: ( localizeWithPath(
|
|
202
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
203
|
+
{ key: 'acceptMerge', comment: ['&& denotes a mnemonic'] },
|
|
204
|
+
'&&Accept Merge'
|
|
205
|
+
))
|
|
156
206
|
});
|
|
157
207
|
if (confirmed) {
|
|
158
208
|
await this.accept();
|
|
@@ -177,7 +227,11 @@ let WorkspaceMergeEditorModeFactory = class WorkspaceMergeEditorModeFactory {
|
|
|
177
227
|
this._textModelService = _textModelService;
|
|
178
228
|
this.textFileService = textFileService;
|
|
179
229
|
}
|
|
180
|
-
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', localizeWithPath(
|
|
230
|
+
static { this.FILE_SAVED_SOURCE = SaveSourceRegistry.registerSource('merge-editor.source', ( localizeWithPath(
|
|
231
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
232
|
+
'merge-editor.source',
|
|
233
|
+
"Before Resolving Conflicts In Merge Editor"
|
|
234
|
+
))); }
|
|
181
235
|
async createInputModel(args) {
|
|
182
236
|
const store = ( new DisposableStore());
|
|
183
237
|
let resultTextFileModel = undefined;
|
|
@@ -286,27 +340,65 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
286
340
|
const someUnhandledConflicts = ( inputModels.some(m => m.model.hasUnhandledConflicts.get()));
|
|
287
341
|
if (someDirty) {
|
|
288
342
|
const message = isMany
|
|
289
|
-
? localizeWithPath(
|
|
290
|
-
|
|
343
|
+
? ( localizeWithPath(
|
|
344
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
345
|
+
'workspace.messageN',
|
|
346
|
+
'Do you want to save the changes you made to {0} files?',
|
|
347
|
+
inputModels.length
|
|
348
|
+
))
|
|
349
|
+
: ( localizeWithPath(
|
|
350
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
351
|
+
'workspace.message1',
|
|
352
|
+
'Do you want to save the changes you made to {0}?',
|
|
353
|
+
basename(inputModels[0].resultUri)
|
|
354
|
+
));
|
|
291
355
|
const { result } = await this._dialogService.prompt({
|
|
292
356
|
type: Severity.Info,
|
|
293
357
|
message,
|
|
294
358
|
detail: someUnhandledConflicts ?
|
|
295
359
|
isMany
|
|
296
|
-
? localizeWithPath(
|
|
297
|
-
|
|
360
|
+
? ( localizeWithPath(
|
|
361
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
362
|
+
'workspace.detailN.unhandled',
|
|
363
|
+
"The files contain unhandled conflicts. Your changes will be lost if you don't save them."
|
|
364
|
+
))
|
|
365
|
+
: ( localizeWithPath(
|
|
366
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
367
|
+
'workspace.detail1.unhandled',
|
|
368
|
+
"The file contains unhandled conflicts. Your changes will be lost if you don't save them."
|
|
369
|
+
))
|
|
298
370
|
: isMany
|
|
299
|
-
? localizeWithPath(
|
|
300
|
-
|
|
371
|
+
? ( localizeWithPath(
|
|
372
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
373
|
+
'workspace.detailN.handled',
|
|
374
|
+
"Your changes will be lost if you don't save them."
|
|
375
|
+
))
|
|
376
|
+
: ( localizeWithPath(
|
|
377
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
378
|
+
'workspace.detail1.handled',
|
|
379
|
+
"Your changes will be lost if you don't save them."
|
|
380
|
+
)),
|
|
301
381
|
buttons: [
|
|
302
382
|
{
|
|
303
383
|
label: someUnhandledConflicts
|
|
304
|
-
? localizeWithPath(
|
|
305
|
-
|
|
384
|
+
? ( localizeWithPath(
|
|
385
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
386
|
+
{ key: 'workspace.saveWithConflict', comment: ['&& denotes a mnemonic'] },
|
|
387
|
+
'&&Save with Conflicts'
|
|
388
|
+
))
|
|
389
|
+
: ( localizeWithPath(
|
|
390
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
391
|
+
{ key: 'workspace.save', comment: ['&& denotes a mnemonic'] },
|
|
392
|
+
'&&Save'
|
|
393
|
+
)),
|
|
306
394
|
run: () => 0
|
|
307
395
|
},
|
|
308
396
|
{
|
|
309
|
-
label: localizeWithPath(
|
|
397
|
+
label: ( localizeWithPath(
|
|
398
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
399
|
+
{ key: 'workspace.doNotSave', comment: ['&& denotes a mnemonic'] },
|
|
400
|
+
"Do&&n't Save"
|
|
401
|
+
)),
|
|
310
402
|
run: () => 1
|
|
311
403
|
}
|
|
312
404
|
],
|
|
@@ -319,17 +411,47 @@ let WorkspaceMergeEditorInputModel = class WorkspaceMergeEditorInputModel extend
|
|
|
319
411
|
else if (someUnhandledConflicts && !this._storageService.getBoolean(StorageCloseWithConflicts, 0 , false)) {
|
|
320
412
|
const { confirmed, checkboxChecked } = await this._dialogService.confirm({
|
|
321
413
|
message: isMany
|
|
322
|
-
? localizeWithPath(
|
|
323
|
-
|
|
414
|
+
? ( localizeWithPath(
|
|
415
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
416
|
+
'workspace.messageN.nonDirty',
|
|
417
|
+
'Do you want to close {0} merge editors?',
|
|
418
|
+
inputModels.length
|
|
419
|
+
))
|
|
420
|
+
: ( localizeWithPath(
|
|
421
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
422
|
+
'workspace.message1.nonDirty',
|
|
423
|
+
'Do you want to close the merge editor for {0}?',
|
|
424
|
+
basename(inputModels[0].resultUri)
|
|
425
|
+
)),
|
|
324
426
|
detail: someUnhandledConflicts ?
|
|
325
427
|
isMany
|
|
326
|
-
? localizeWithPath(
|
|
327
|
-
|
|
428
|
+
? ( localizeWithPath(
|
|
429
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
430
|
+
'workspace.detailN.unhandled.nonDirty',
|
|
431
|
+
"The files contain unhandled conflicts."
|
|
432
|
+
))
|
|
433
|
+
: ( localizeWithPath(
|
|
434
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
435
|
+
'workspace.detail1.unhandled.nonDirty',
|
|
436
|
+
"The file contains unhandled conflicts."
|
|
437
|
+
))
|
|
328
438
|
: undefined,
|
|
329
439
|
primaryButton: someUnhandledConflicts
|
|
330
|
-
? localizeWithPath(
|
|
331
|
-
|
|
332
|
-
|
|
440
|
+
? ( localizeWithPath(
|
|
441
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
442
|
+
{ key: 'workspace.closeWithConflicts', comment: ['&& denotes a mnemonic'] },
|
|
443
|
+
'&&Close with Conflicts'
|
|
444
|
+
))
|
|
445
|
+
: ( localizeWithPath(
|
|
446
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
447
|
+
{ key: 'workspace.close', comment: ['&& denotes a mnemonic'] },
|
|
448
|
+
'&&Close'
|
|
449
|
+
)),
|
|
450
|
+
checkbox: { label: ( localizeWithPath(
|
|
451
|
+
'vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel',
|
|
452
|
+
'noMoreWarn',
|
|
453
|
+
"Don't ask again"
|
|
454
|
+
)) }
|
|
333
455
|
});
|
|
334
456
|
if (checkboxChecked) {
|
|
335
457
|
this._storageService.store(StorageCloseWithConflicts, true, 0 , 0 );
|
|
@@ -362,7 +362,11 @@ let MergeEditorModel = class MergeEditorModel extends EditorModel {
|
|
|
362
362
|
type: 0 ,
|
|
363
363
|
resource: this.resultTextModel.uri,
|
|
364
364
|
code: 'setInputHandled',
|
|
365
|
-
label: localizeWithPath(
|
|
365
|
+
label: ( localizeWithPath(
|
|
366
|
+
'vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel',
|
|
367
|
+
'setInputHandled',
|
|
368
|
+
"Set Input Handled"
|
|
369
|
+
)),
|
|
366
370
|
redo() {
|
|
367
371
|
const model = modelRef.deref();
|
|
368
372
|
const data = dataRef.deref();
|
|
@@ -571,7 +575,11 @@ class MarkAsHandledUndoRedoElement {
|
|
|
571
575
|
this.input1Handled = input1Handled;
|
|
572
576
|
this.input2Handled = input2Handled;
|
|
573
577
|
this.code = 'undoMarkAsHandled';
|
|
574
|
-
this.label = localizeWithPath(
|
|
578
|
+
this.label = ( localizeWithPath(
|
|
579
|
+
'vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel',
|
|
580
|
+
'undoMarkAsHandled',
|
|
581
|
+
'Undo Mark As Handled'
|
|
582
|
+
));
|
|
575
583
|
this.type = 0 ;
|
|
576
584
|
}
|
|
577
585
|
redo() {
|
|
@@ -1,44 +1,2 @@
|
|
|
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
|
-
));
|
|
43
1
|
const StorageCloseWithConflicts = 'mergeEditorCloseWithConflicts';
|
|
44
2
|
export { StorageCloseWithConflicts };
|