@codingame/monaco-vscode-chat-service-override 15.0.2 → 16.0.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/index.js +11 -8
- package/package.json +29 -20
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +22 -0
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +80 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/chatAttachPromptAction.js +17 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/{askToSelectPrompt.d.ts → askToSelectPrompt/askToSelectPrompt.d.ts} +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/askToSelectPrompt.js +79 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/constants.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/attachPrompts.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPlaceholderText.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/createPromptPickItem.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt/utils/handleButtonClick.js +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +163 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +242 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +688 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +355 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +395 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +98 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +216 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +97 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +831 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +32 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +985 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +67 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +147 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +284 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +578 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/helpers.js +320 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +50 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +22 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +166 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +6 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +704 -732
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +10 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +329 -236
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusItemService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +14 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +17 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +217 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +65 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/errors.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.js +14 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +175 -57
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +313 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/constants.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/textModelContentsProvider.js +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptLinkDiagnosticsProvider.js +117 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageFeatures/promptPathAutocompletion.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +157 -65
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +39 -21
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +11 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +47 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.d.ts +5 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceUtils.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAttachPromptAction/dialogs/askToSelectPrompt.js +0 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +0 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +0 -331
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +0 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementsService.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.d.ts +0 -31
- package/vscode/src/vs/workbench/contrib/chat/common/chatQuotasService.js +0 -85
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +0 -22
|
@@ -8,30 +8,41 @@ import { MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/comm
|
|
|
8
8
|
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
9
9
|
import { DisposableMap, DisposableStore, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
10
10
|
import { AmbiguousCharacters, InvisibleCharacters } from '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
11
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
11
12
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
12
|
-
import {
|
|
13
|
+
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
14
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
15
|
+
import { ContextKeyExpr, RawContextKey } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
16
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
17
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
15
18
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
16
19
|
import { ILogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service';
|
|
20
|
+
import { IOpenerService } from '@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service';
|
|
17
21
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
18
22
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
19
|
-
import {
|
|
23
|
+
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
24
|
+
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
25
|
+
import { ViewPane } from '@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
26
|
+
import { ViewPaneContainer } from '@codingame/monaco-vscode-b1110435-a331-5549-ab1e-aa3d763c3a1f-common/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
27
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
20
28
|
import { Extensions, ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
21
29
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
22
30
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
23
31
|
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
32
|
+
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
24
33
|
import { showExtensionsWithIdsCommandId } from '@codingame/monaco-vscode-805e9c2f-56b6-5a43-8b5b-d2dc2d3805fc-common/vscode/vs/workbench/contrib/extensions/browser/extensionsActions';
|
|
25
34
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
26
|
-
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
27
35
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
28
36
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
29
|
-
import {
|
|
37
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
38
|
+
import { ChatAgentLocation, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
39
|
+
import { ChatViewId, showChatView } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
30
40
|
import { CHAT_SIDEBAR_PANEL_ID, ChatViewPane, CHAT_EDITING_SIDEBAR_PANEL_ID } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatViewPane';
|
|
31
41
|
|
|
42
|
+
var EditsViewContribution_1;
|
|
32
43
|
const chatViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
33
44
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
34
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(4742, "Chat")),
|
|
35
46
|
icon: Codicon.commentDiscussion,
|
|
36
47
|
ctorDescriptor: ( new SyncDescriptor(
|
|
37
48
|
ViewPaneContainer,
|
|
@@ -46,13 +57,13 @@ const chatViewDescriptor = [{
|
|
|
46
57
|
containerIcon: chatViewContainer.icon,
|
|
47
58
|
containerTitle: chatViewContainer.title.value,
|
|
48
59
|
singleViewPaneContainerTitle: chatViewContainer.title.value,
|
|
49
|
-
name: ( localize2(
|
|
60
|
+
name: ( localize2(4742, "Chat")),
|
|
50
61
|
canToggleVisibility: false,
|
|
51
62
|
canMoveView: true,
|
|
52
63
|
openCommandActionDescriptor: {
|
|
53
64
|
id: CHAT_SIDEBAR_PANEL_ID,
|
|
54
65
|
title: chatViewContainer.title,
|
|
55
|
-
mnemonicTitle: ( localize(
|
|
66
|
+
mnemonicTitle: ( localize(4743, "&&Chat")),
|
|
56
67
|
keybindings: {
|
|
57
68
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.KeyI,
|
|
58
69
|
mac: {
|
|
@@ -67,7 +78,7 @@ const chatViewDescriptor = [{
|
|
|
67
78
|
( Registry.as(Extensions.ViewsRegistry)).registerViews(chatViewDescriptor, chatViewContainer);
|
|
68
79
|
const editsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
|
|
69
80
|
id: CHAT_EDITING_SIDEBAR_PANEL_ID,
|
|
70
|
-
title: ( localize2(
|
|
81
|
+
title: ( localize2(4744, "Copilot Edits")),
|
|
71
82
|
icon: Codicon.editSession,
|
|
72
83
|
ctorDescriptor: ( new SyncDescriptor(
|
|
73
84
|
ViewPaneContainer,
|
|
@@ -77,34 +88,10 @@ const editsViewContainer = ( Registry.as(Extensions.ViewContainersRegistry)).reg
|
|
|
77
88
|
hideIfEmpty: true,
|
|
78
89
|
order: 101,
|
|
79
90
|
}, ViewContainerLocation.AuxiliaryBar, { doNotRegisterOpenCommand: true });
|
|
80
|
-
const editsViewDescriptor = [{
|
|
81
|
-
id: 'workbench.panel.chat.view.edits',
|
|
82
|
-
containerIcon: editsViewContainer.icon,
|
|
83
|
-
containerTitle: editsViewContainer.title.value,
|
|
84
|
-
singleViewPaneContainerTitle: editsViewContainer.title.value,
|
|
85
|
-
name: editsViewContainer.title,
|
|
86
|
-
canToggleVisibility: false,
|
|
87
|
-
canMoveView: true,
|
|
88
|
-
openCommandActionDescriptor: {
|
|
89
|
-
id: CHAT_EDITING_SIDEBAR_PANEL_ID,
|
|
90
|
-
title: editsViewContainer.title,
|
|
91
|
-
mnemonicTitle: ( localize(4652, "Copilot Ed&&its")),
|
|
92
|
-
keybindings: {
|
|
93
|
-
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI,
|
|
94
|
-
linux: {
|
|
95
|
-
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyI
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
order: 2
|
|
99
|
-
},
|
|
100
|
-
ctorDescriptor: ( new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.EditingSession }])),
|
|
101
|
-
when: ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.editingParticipantRegistered))
|
|
102
|
-
}];
|
|
103
|
-
( Registry.as(Extensions.ViewsRegistry)).registerViews(editsViewDescriptor, editsViewContainer);
|
|
104
91
|
const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
105
92
|
extensionPoint: 'chatParticipants',
|
|
106
93
|
jsonSchema: {
|
|
107
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(4745, 'Contributes a chat participant')),
|
|
108
95
|
type: 'array',
|
|
109
96
|
items: {
|
|
110
97
|
additionalProperties: false,
|
|
@@ -113,12 +100,12 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
113
100
|
required: ['name', 'id'],
|
|
114
101
|
properties: {
|
|
115
102
|
id: {
|
|
116
|
-
description: ( localize(
|
|
103
|
+
description: ( localize(4746, "A unique id for this chat participant.")),
|
|
117
104
|
type: 'string'
|
|
118
105
|
},
|
|
119
106
|
name: {
|
|
120
107
|
description: ( localize(
|
|
121
|
-
|
|
108
|
+
4747,
|
|
122
109
|
"User-facing name for this chat participant. The user will use '@' with this name to invoke the participant. Name must not contain whitespace."
|
|
123
110
|
)),
|
|
124
111
|
type: 'string',
|
|
@@ -126,37 +113,37 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
126
113
|
},
|
|
127
114
|
fullName: {
|
|
128
115
|
markdownDescription: ( localize(
|
|
129
|
-
|
|
116
|
+
4748,
|
|
130
117
|
"The full name of this chat participant, which is shown as the label for responses coming from this participant. If not provided, {0} is used.",
|
|
131
118
|
'`name`'
|
|
132
119
|
)),
|
|
133
120
|
type: 'string'
|
|
134
121
|
},
|
|
135
122
|
description: {
|
|
136
|
-
description: ( localize(
|
|
123
|
+
description: ( localize(4749, "A description of this chat participant, shown in the UI.")),
|
|
137
124
|
type: 'string'
|
|
138
125
|
},
|
|
139
126
|
isSticky: {
|
|
140
127
|
description: ( localize(
|
|
141
|
-
|
|
128
|
+
4750,
|
|
142
129
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
143
130
|
)),
|
|
144
131
|
type: 'boolean'
|
|
145
132
|
},
|
|
146
133
|
sampleRequest: {
|
|
147
134
|
description: ( localize(
|
|
148
|
-
|
|
135
|
+
4751,
|
|
149
136
|
"When the user clicks this participant in `/help`, this text will be submitted to the participant."
|
|
150
137
|
)),
|
|
151
138
|
type: 'string'
|
|
152
139
|
},
|
|
153
140
|
when: {
|
|
154
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(4752, "A condition which must be true to enable this participant.")),
|
|
155
142
|
type: 'string'
|
|
156
143
|
},
|
|
157
144
|
disambiguation: {
|
|
158
145
|
description: ( localize(
|
|
159
|
-
|
|
146
|
+
4753,
|
|
160
147
|
"Metadata to help with automatically routing user questions to this chat participant."
|
|
161
148
|
)),
|
|
162
149
|
type: 'array',
|
|
@@ -168,21 +155,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
168
155
|
properties: {
|
|
169
156
|
category: {
|
|
170
157
|
markdownDescription: ( localize(
|
|
171
|
-
|
|
158
|
+
4754,
|
|
172
159
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
173
160
|
)),
|
|
174
161
|
type: 'string'
|
|
175
162
|
},
|
|
176
163
|
description: {
|
|
177
164
|
description: ( localize(
|
|
178
|
-
|
|
165
|
+
4755,
|
|
179
166
|
"A detailed description of the kinds of questions that are suitable for this chat participant."
|
|
180
167
|
)),
|
|
181
168
|
type: 'string'
|
|
182
169
|
},
|
|
183
170
|
examples: {
|
|
184
171
|
description: ( localize(
|
|
185
|
-
|
|
172
|
+
4756,
|
|
186
173
|
"A list of representative example questions that are suitable for this chat participant."
|
|
187
174
|
)),
|
|
188
175
|
type: 'array'
|
|
@@ -192,7 +179,7 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
192
179
|
},
|
|
193
180
|
commands: {
|
|
194
181
|
markdownDescription: ( localize(
|
|
195
|
-
|
|
182
|
+
4757,
|
|
196
183
|
"Commands available for this chat participant, which the user can invoke with a `/`."
|
|
197
184
|
)),
|
|
198
185
|
type: 'array',
|
|
@@ -204,36 +191,36 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
204
191
|
properties: {
|
|
205
192
|
name: {
|
|
206
193
|
description: ( localize(
|
|
207
|
-
|
|
194
|
+
4758,
|
|
208
195
|
"A short name by which this command is referred to in the UI, e.g. `fix` or * `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
209
196
|
)),
|
|
210
197
|
type: 'string'
|
|
211
198
|
},
|
|
212
199
|
description: {
|
|
213
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(4759, "A description of this command.")),
|
|
214
201
|
type: 'string'
|
|
215
202
|
},
|
|
216
203
|
when: {
|
|
217
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(4760, "A condition which must be true to enable this command.")),
|
|
218
205
|
type: 'string'
|
|
219
206
|
},
|
|
220
207
|
sampleRequest: {
|
|
221
208
|
description: ( localize(
|
|
222
|
-
|
|
209
|
+
4761,
|
|
223
210
|
"When the user clicks this command in `/help`, this text will be submitted to the participant."
|
|
224
211
|
)),
|
|
225
212
|
type: 'string'
|
|
226
213
|
},
|
|
227
214
|
isSticky: {
|
|
228
215
|
description: ( localize(
|
|
229
|
-
|
|
216
|
+
4750,
|
|
230
217
|
"Whether invoking the command puts the chat into a persistent mode, where the command is automatically added to the chat input for the next message."
|
|
231
218
|
)),
|
|
232
219
|
type: 'boolean'
|
|
233
220
|
},
|
|
234
221
|
disambiguation: {
|
|
235
222
|
description: ( localize(
|
|
236
|
-
|
|
223
|
+
4762,
|
|
237
224
|
"Metadata to help with automatically routing user questions to this chat command."
|
|
238
225
|
)),
|
|
239
226
|
type: 'array',
|
|
@@ -245,21 +232,21 @@ const chatParticipantExtensionPoint = ExtensionsRegistry.registerExtensionPoint(
|
|
|
245
232
|
properties: {
|
|
246
233
|
category: {
|
|
247
234
|
markdownDescription: ( localize(
|
|
248
|
-
|
|
235
|
+
4763,
|
|
249
236
|
"A detailed name for this category, e.g. `workspace_questions` or `web_questions`."
|
|
250
237
|
)),
|
|
251
238
|
type: 'string'
|
|
252
239
|
},
|
|
253
240
|
description: {
|
|
254
241
|
description: ( localize(
|
|
255
|
-
|
|
242
|
+
4764,
|
|
256
243
|
"A detailed description of the kinds of questions that are suitable for this chat command."
|
|
257
244
|
)),
|
|
258
245
|
type: 'string'
|
|
259
246
|
},
|
|
260
247
|
examples: {
|
|
261
248
|
description: ( localize(
|
|
262
|
-
|
|
249
|
+
4765,
|
|
263
250
|
"A list of representative example questions that are suitable for this chat command."
|
|
264
251
|
)),
|
|
265
252
|
type: 'array'
|
|
@@ -391,9 +378,9 @@ let ChatCompatibilityNotifier = class ChatCompatibilityNotifier extends Disposab
|
|
|
391
378
|
return;
|
|
392
379
|
}
|
|
393
380
|
this.registeredWelcomeView = true;
|
|
394
|
-
const showExtensionLabel = ( localize(
|
|
381
|
+
const showExtensionLabel = ( localize(4766, "Show Extension"));
|
|
395
382
|
const mainMessage = ( localize(
|
|
396
|
-
|
|
383
|
+
4767,
|
|
397
384
|
"Chat failed to load because the installed version of the Copilot Chat extension is not compatible with this version of {0}. Please ensure that the Copilot Chat extension is up to date.",
|
|
398
385
|
this.productService.nameLong
|
|
399
386
|
));
|
|
@@ -425,10 +412,10 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
425
412
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
426
413
|
}
|
|
427
414
|
const headers = [
|
|
428
|
-
( localize(
|
|
429
|
-
( localize(
|
|
430
|
-
( localize(
|
|
431
|
-
( localize(
|
|
415
|
+
( localize(4768, "Name")),
|
|
416
|
+
( localize(4769, "Full Name")),
|
|
417
|
+
( localize(4770, "Description")),
|
|
418
|
+
( localize(4771, "Commands")),
|
|
432
419
|
];
|
|
433
420
|
const rows = ( nonDefaultContributions.map(d => {
|
|
434
421
|
return [
|
|
@@ -449,11 +436,128 @@ class ChatParticipantDataRenderer extends Disposable {
|
|
|
449
436
|
}
|
|
450
437
|
( Registry.as(Extensions$1.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
451
438
|
id: 'chatParticipants',
|
|
452
|
-
label: ( localize(
|
|
439
|
+
label: ( localize(4772, "Chat Participants")),
|
|
453
440
|
access: {
|
|
454
441
|
canToggle: false
|
|
455
442
|
},
|
|
456
443
|
renderer: ( new SyncDescriptor(ChatParticipantDataRenderer)),
|
|
457
444
|
});
|
|
445
|
+
class MovedChatEditsViewPane extends ViewPane {
|
|
446
|
+
shouldShowWelcome() {
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
const editsViewId = 'workbench.panel.chat.view.edits';
|
|
451
|
+
const baseEditsViewDescriptor = {
|
|
452
|
+
id: editsViewId,
|
|
453
|
+
containerIcon: editsViewContainer.icon,
|
|
454
|
+
containerTitle: editsViewContainer.title.value,
|
|
455
|
+
singleViewPaneContainerTitle: editsViewContainer.title.value,
|
|
456
|
+
name: editsViewContainer.title,
|
|
457
|
+
canToggleVisibility: false,
|
|
458
|
+
canMoveView: true,
|
|
459
|
+
openCommandActionDescriptor: {
|
|
460
|
+
id: CHAT_EDITING_SIDEBAR_PANEL_ID,
|
|
461
|
+
title: editsViewContainer.title,
|
|
462
|
+
mnemonicTitle: ( localize(4773, "Copilot Ed&&its")),
|
|
463
|
+
keybindings: {
|
|
464
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyI,
|
|
465
|
+
linux: {
|
|
466
|
+
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyMod.Shift | KeyCode.KeyI
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
order: 2
|
|
470
|
+
},
|
|
471
|
+
ctorDescriptor: ( new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.EditingSession }])),
|
|
472
|
+
when: ( ContextKeyExpr.and(( ( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedChatView}`)).negate()), ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.editingParticipantRegistered))))
|
|
473
|
+
};
|
|
474
|
+
const ShowMovedChatEditsView = ( new RawContextKey(
|
|
475
|
+
'showMovedChatEditsView',
|
|
476
|
+
true,
|
|
477
|
+
{ type: 'boolean', description: ( localize(4774, "True when the moved chat edits view should be hidden.")) }
|
|
478
|
+
));
|
|
479
|
+
let EditsViewContribution = class EditsViewContribution extends Disposable {
|
|
480
|
+
static { EditsViewContribution_1 = this; }
|
|
481
|
+
static { this.ID = 'workbench.contrib.chatEditsView'; }
|
|
482
|
+
static { this.HideMovedEditsViewKey = 'chatEditsView.hideMovedEditsView'; }
|
|
483
|
+
constructor(configurationService, storageService, contextKeyService, chatService) {
|
|
484
|
+
super();
|
|
485
|
+
this.configurationService = configurationService;
|
|
486
|
+
this.storageService = storageService;
|
|
487
|
+
this.contextKeyService = contextKeyService;
|
|
488
|
+
this.chatService = chatService;
|
|
489
|
+
this.showWelcomeViewCtx = ShowMovedChatEditsView.bindTo(this.contextKeyService);
|
|
490
|
+
const unifiedViewEnabled = this.configurationService.getValue(ChatConfiguration.UnifiedChatView);
|
|
491
|
+
const movedEditsViewDescriptor = {
|
|
492
|
+
...baseEditsViewDescriptor,
|
|
493
|
+
ctorDescriptor: ( new SyncDescriptor(MovedChatEditsViewPane)),
|
|
494
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has(`config.${ChatConfiguration.UnifiedChatView}`)), ShowMovedChatEditsView, ( ContextKeyExpr.or(( ChatContextKeys.Setup.hidden.negate()), ChatContextKeys.Setup.installed, ChatContextKeys.editingParticipantRegistered))))
|
|
495
|
+
};
|
|
496
|
+
const editsViewToRegister = unifiedViewEnabled ?
|
|
497
|
+
movedEditsViewDescriptor : baseEditsViewDescriptor;
|
|
498
|
+
if (unifiedViewEnabled) {
|
|
499
|
+
this.init();
|
|
500
|
+
this.updateContextKey();
|
|
501
|
+
this.registerWelcomeView();
|
|
502
|
+
this.registerCommands();
|
|
503
|
+
}
|
|
504
|
+
( Registry.as(Extensions.ViewsRegistry)).registerViews([editsViewToRegister], editsViewContainer);
|
|
505
|
+
}
|
|
506
|
+
registerWelcomeView() {
|
|
507
|
+
const welcomeViewMainMessage = ( localize(
|
|
508
|
+
4775,
|
|
509
|
+
"Copilot Edits has been moved to the [main Chat view](command:workbench.action.chat.open). You can switch between modes by using the dropdown in the Chat input box."
|
|
510
|
+
));
|
|
511
|
+
const okButton = `[${( localize(4776, "Got it"))}](command:_movedEditsView.ok)`;
|
|
512
|
+
const welcomeViewFooterMessage = ( localize(
|
|
513
|
+
4777,
|
|
514
|
+
"[Learn more](command:_movedEditsView.learnMore) about the Chat view."
|
|
515
|
+
));
|
|
516
|
+
const viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
517
|
+
this._register(viewsRegistry.registerViewWelcomeContent(editsViewId, {
|
|
518
|
+
content: [welcomeViewMainMessage, okButton, welcomeViewFooterMessage].join('\n\n'),
|
|
519
|
+
renderSecondaryButtons: true,
|
|
520
|
+
when: ShowMovedChatEditsView
|
|
521
|
+
}));
|
|
522
|
+
}
|
|
523
|
+
markViewToHide() {
|
|
524
|
+
this.storageService.store(EditsViewContribution_1.HideMovedEditsViewKey, true, StorageScope.APPLICATION, StorageTarget.USER);
|
|
525
|
+
this.updateContextKey();
|
|
526
|
+
}
|
|
527
|
+
init() {
|
|
528
|
+
const hasChats = this.chatService.hasSessions();
|
|
529
|
+
if (!hasChats) {
|
|
530
|
+
this.markViewToHide();
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
updateContextKey() {
|
|
534
|
+
const hidden = this.storageService.getBoolean(EditsViewContribution_1.HideMovedEditsViewKey, StorageScope.APPLICATION, false);
|
|
535
|
+
const hasChats = this.chatService.hasSessions();
|
|
536
|
+
this.showWelcomeViewCtx.set(!hidden && hasChats);
|
|
537
|
+
}
|
|
538
|
+
registerCommands() {
|
|
539
|
+
this._register(CommandsRegistry.registerCommand({
|
|
540
|
+
id: '_movedEditsView.ok',
|
|
541
|
+
handler: async (accessor) => {
|
|
542
|
+
showChatView(accessor.get(IViewsService));
|
|
543
|
+
this.markViewToHide();
|
|
544
|
+
}
|
|
545
|
+
}));
|
|
546
|
+
this._register(CommandsRegistry.registerCommand({
|
|
547
|
+
id: '_movedEditsView.learnMore',
|
|
548
|
+
handler: async (accessor) => {
|
|
549
|
+
const openerService = accessor.get(IOpenerService);
|
|
550
|
+
openerService.open(( URI.parse('https://aka.ms/vscode-chat-modes')));
|
|
551
|
+
}
|
|
552
|
+
}));
|
|
553
|
+
}
|
|
554
|
+
};
|
|
555
|
+
EditsViewContribution = EditsViewContribution_1 = ( __decorate([
|
|
556
|
+
( __param(0, IConfigurationService)),
|
|
557
|
+
( __param(1, IStorageService)),
|
|
558
|
+
( __param(2, IContextKeyService)),
|
|
559
|
+
( __param(3, IChatService))
|
|
560
|
+
], EditsViewContribution));
|
|
561
|
+
registerWorkbenchContribution2(EditsViewContribution.ID, EditsViewContribution, WorkbenchPhase.BlockRestore);
|
|
458
562
|
|
|
459
|
-
export { ChatCompatibilityNotifier, ChatExtensionPointHandler };
|
|
563
|
+
export { ChatCompatibilityNotifier, ChatExtensionPointHandler, MovedChatEditsViewPane };
|
|
@@ -25,11 +25,11 @@ import { quickInputBackground, quickInputForeground } from '@codingame/monaco-vs
|
|
|
25
25
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
26
26
|
import { showChatView } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
27
27
|
import { ChatWidget } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
28
|
-
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
29
28
|
import { isCellTextEditOperation } from '@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
30
29
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
31
30
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
32
31
|
import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
32
|
+
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
33
33
|
|
|
34
34
|
var QuickChat_1;
|
|
35
35
|
let QuickChatService = class QuickChatService extends Disposable {
|
|
@@ -1,121 +1,23 @@
|
|
|
1
|
-
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
|
-
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
|
-
import { Lazy } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lazy";
|
|
4
1
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
5
2
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
6
3
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
|
-
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
8
|
-
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
9
4
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
10
5
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
11
6
|
import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service";
|
|
12
|
-
import { IRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/request/common/request.service";
|
|
13
|
-
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
14
7
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
15
|
-
import { IWorkspaceContextService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspace.service";
|
|
16
8
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
17
|
-
import {
|
|
18
|
-
import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service";
|
|
19
|
-
import { IWorkbenchExtensionEnablementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensionManagement/common/extensionManagement.service";
|
|
20
|
-
import { IExtensionsWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service";
|
|
21
|
-
import { IChatQuotasService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatQuotasService.service";
|
|
22
|
-
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
23
|
-
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
24
|
-
import { IWorkbenchAssignmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service";
|
|
25
|
-
import { ChatEntitlement, IChatEntitlements } from "../common/chatEntitlementsService.js";
|
|
26
|
-
import { IChatEntitlementsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEntitlementsService.service";
|
|
27
|
-
export declare class ChatEntitlementsService extends Disposable implements IChatEntitlementsService {
|
|
28
|
-
_serviceBrand: undefined;
|
|
29
|
-
readonly context: Lazy<ChatSetupContext> | undefined;
|
|
30
|
-
readonly requests: Lazy<ChatSetupRequests> | undefined;
|
|
31
|
-
constructor(instantiationService: IInstantiationService, productService: IProductService, environmentService: IWorkbenchEnvironmentService);
|
|
32
|
-
resolve(token: CancellationToken): Promise<IChatEntitlements | undefined>;
|
|
33
|
-
}
|
|
9
|
+
import { ChatEntitlementService } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService";
|
|
34
10
|
export declare class ChatSetupContribution extends Disposable implements IWorkbenchContribution {
|
|
35
11
|
private readonly productService;
|
|
36
12
|
private readonly instantiationService;
|
|
37
13
|
private readonly commandService;
|
|
38
14
|
private readonly telemetryService;
|
|
39
|
-
private readonly
|
|
40
|
-
|
|
41
|
-
|
|
15
|
+
private readonly configurationService;
|
|
16
|
+
private readonly logService;
|
|
17
|
+
static readonly ID = "workbench.contrib.chatSetup";
|
|
18
|
+
constructor(productService: IProductService, instantiationService: IInstantiationService, commandService: ICommandService, telemetryService: ITelemetryService, chatEntitlementService: ChatEntitlementService, configurationService: IConfigurationService, logService: ILogService);
|
|
19
|
+
private registerSetupAgents;
|
|
42
20
|
private registerChatWelcome;
|
|
43
21
|
private registerActions;
|
|
44
22
|
private registerUrlLinkHandler;
|
|
45
|
-
private registerSetting;
|
|
46
|
-
}
|
|
47
|
-
declare class ChatSetupRequests extends Disposable {
|
|
48
|
-
private readonly context;
|
|
49
|
-
private readonly telemetryService;
|
|
50
|
-
private readonly authenticationService;
|
|
51
|
-
private readonly logService;
|
|
52
|
-
private readonly requestService;
|
|
53
|
-
private readonly chatQuotasService;
|
|
54
|
-
private readonly dialogService;
|
|
55
|
-
private readonly openerService;
|
|
56
|
-
private readonly configurationService;
|
|
57
|
-
static providerId(configurationService: IConfigurationService): string;
|
|
58
|
-
private state;
|
|
59
|
-
private pendingResolveCts;
|
|
60
|
-
private didResolveEntitlements;
|
|
61
|
-
constructor(context: ChatSetupContext, telemetryService: ITelemetryService, authenticationService: IAuthenticationService, logService: ILogService, requestService: IRequestService, chatQuotasService: IChatQuotasService, dialogService: IDialogService, openerService: IOpenerService, configurationService: IConfigurationService);
|
|
62
|
-
private registerListeners;
|
|
63
|
-
private resolve;
|
|
64
|
-
private findMatchingProviderSession;
|
|
65
|
-
private doGetSessions;
|
|
66
|
-
private scopesMatch;
|
|
67
|
-
private resolveEntitlement;
|
|
68
|
-
private doResolveEntitlement;
|
|
69
|
-
private request;
|
|
70
|
-
private update;
|
|
71
|
-
forceResolveEntitlement(session: AuthenticationSession | undefined, token?: Readonly<CancellationToken>): Promise<IChatEntitlements | undefined>;
|
|
72
|
-
signUpLimited(session: AuthenticationSession): Promise<true | false | {
|
|
73
|
-
errorCode: number;
|
|
74
|
-
}>;
|
|
75
|
-
private onUnknownSignUpError;
|
|
76
|
-
private onUnprocessableSignUpError;
|
|
77
|
-
dispose(): void;
|
|
78
|
-
}
|
|
79
|
-
interface IChatSetupContextState {
|
|
80
|
-
entitlement: ChatEntitlement;
|
|
81
|
-
hidden?: boolean;
|
|
82
|
-
installed?: boolean;
|
|
83
|
-
registered?: boolean;
|
|
84
|
-
}
|
|
85
|
-
declare class ChatSetupContext extends Disposable {
|
|
86
|
-
private readonly contextKeyService;
|
|
87
|
-
private readonly storageService;
|
|
88
|
-
private readonly workspaceContextService;
|
|
89
|
-
private readonly extensionEnablementService;
|
|
90
|
-
private readonly logService;
|
|
91
|
-
private readonly extensionsWorkbenchService;
|
|
92
|
-
private static readonly CHAT_SETUP_CONTEXT_STORAGE_KEY;
|
|
93
|
-
private readonly canSignUpContextKey;
|
|
94
|
-
private readonly signedOutContextKey;
|
|
95
|
-
private readonly limitedContextKey;
|
|
96
|
-
private readonly proContextKey;
|
|
97
|
-
private readonly hiddenContext;
|
|
98
|
-
private readonly installedContext;
|
|
99
|
-
private _state;
|
|
100
|
-
private suspendedState;
|
|
101
|
-
get state(): IChatSetupContextState;
|
|
102
|
-
private readonly _onDidChange;
|
|
103
|
-
readonly onDidChange: Event<void>;
|
|
104
|
-
private updateBarrier;
|
|
105
|
-
constructor(contextKeyService: IContextKeyService, storageService: IStorageService, workspaceContextService: IWorkspaceContextService, extensionEnablementService: IWorkbenchExtensionEnablementService, logService: ILogService, extensionsWorkbenchService: IExtensionsWorkbenchService);
|
|
106
|
-
private checkExtensionInstallation;
|
|
107
|
-
update(context: {
|
|
108
|
-
installed: boolean;
|
|
109
|
-
}): Promise<void>;
|
|
110
|
-
update(context: {
|
|
111
|
-
hidden: boolean;
|
|
112
|
-
}): Promise<void>;
|
|
113
|
-
update(context: {
|
|
114
|
-
entitlement: ChatEntitlement;
|
|
115
|
-
}): Promise<void>;
|
|
116
|
-
private updateContext;
|
|
117
|
-
private updateContextSync;
|
|
118
|
-
suspend(): void;
|
|
119
|
-
resume(): void;
|
|
120
23
|
}
|
|
121
|
-
export {};
|