@codingame/monaco-vscode-chat-service-override 17.2.1 → 18.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 +7 -4
- package/package.json +36 -30
- package/vscode/src/vs/base/common/objectCache.d.ts +2 -2
- package/vscode/src/vs/base/common/objectCache.js +3 -3
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +10 -0
- package/vscode/src/vs/platform/browserElements/common/browserElements.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +40 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +158 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +256 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +234 -572
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +29 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +107 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +344 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +84 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.d.ts +18 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatAttachInstructionsAction.js +137 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatModeActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatModeActions.js +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatRunPromptAction.js +40 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/chatSaveToPromptAction.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.d.ts +15 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/promptFilePickers.js +171 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/attachInstructions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/dialogs/askToSelectPrompt/utils/runPrompt.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/promptActions/index.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +176 -69
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +15 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +35 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +80 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +11 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +12 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +15 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +18 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +118 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +46 -48
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +379 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +31 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +382 -152
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +99 -56
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +9 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +10 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +18 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +95 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +92 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/media/github.svg +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/google.svg +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +10 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/createPromptCommand.js +111 -111
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptName.js +36 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.d.ts +5 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/dialogs/askForPromptSourceFolder.js +91 -17
- 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 +1 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/createPromptCommand/utils/createPromptFile.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +95 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +348 -0
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +93 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +46 -36
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/configMigration.js +21 -11
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/index.js +6 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/index.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptHeaderDiagnosticsProvider.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkDiagnosticsProvider.js +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptLinkProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/promptPathAutocompletion.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceBase.js +9 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/providerInstanceManagerBase.js +12 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/textModelPromptParser.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +21 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +111 -124
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +22 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +159 -97
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/treeUtils.js +2 -14
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +198 -33
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +28 -18
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/attachInstructionsCommand.js +0 -73
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.d.ts +0 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterDecoration.js +0 -74
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/frontMatterMarkerDecoration.js +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/decorationBase.js +0 -40
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/index.js +0 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/reactiveDecorationBase.js +0 -68
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/decorations/utils/types.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.d.ts +0 -19
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/promptDecorationsProvider.js +0 -121
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.d.ts +0 -13
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contributions/languageFeatures/providers/decorationsProvider/types.js +0 -13
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
2
2
|
import { Disposable, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IObservable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/observable";
|
|
4
|
+
import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables";
|
|
3
5
|
import { IAccessibilityService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service";
|
|
6
|
+
import { IAccessibilitySignalService } from "@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service";
|
|
4
7
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
5
8
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
6
9
|
import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
@@ -9,7 +12,7 @@ import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log
|
|
|
9
12
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
10
13
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
11
14
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
12
|
-
import { CountTokensCallback, IToolData, IToolImpl, IToolInvocation, IToolResult } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService";
|
|
15
|
+
import { CountTokensCallback, IToolData, IToolImpl, IToolInvocation, IToolResult, ToolSet, ToolDataSource } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService";
|
|
13
16
|
import { ILanguageModelToolsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service";
|
|
14
17
|
export declare class LanguageModelToolsService extends Disposable implements ILanguageModelToolsService {
|
|
15
18
|
private readonly _instantiationService;
|
|
@@ -21,6 +24,7 @@ export declare class LanguageModelToolsService extends Disposable implements ILa
|
|
|
21
24
|
private readonly _logService;
|
|
22
25
|
private readonly _configurationService;
|
|
23
26
|
private readonly _accessibilityService;
|
|
27
|
+
private readonly _accessibilitySignalService;
|
|
24
28
|
_serviceBrand: undefined;
|
|
25
29
|
private _onDidChangeTools;
|
|
26
30
|
readonly onDidChangeTools: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
@@ -32,23 +36,32 @@ export declare class LanguageModelToolsService extends Disposable implements ILa
|
|
|
32
36
|
private _workspaceToolConfirmStore;
|
|
33
37
|
private _profileToolConfirmStore;
|
|
34
38
|
private _memoryToolConfirmStore;
|
|
35
|
-
constructor(_instantiationService: IInstantiationService, _extensionService: IExtensionService, _contextKeyService: IContextKeyService, _chatService: IChatService, _dialogService: IDialogService, _telemetryService: ITelemetryService, _logService: ILogService, _configurationService: IConfigurationService, _accessibilityService: IAccessibilityService);
|
|
39
|
+
constructor(_instantiationService: IInstantiationService, _extensionService: IExtensionService, _contextKeyService: IContextKeyService, _chatService: IChatService, _dialogService: IDialogService, _telemetryService: ITelemetryService, _logService: ILogService, _configurationService: IConfigurationService, _accessibilityService: IAccessibilityService, _accessibilitySignalService: IAccessibilitySignalService);
|
|
40
|
+
dispose(): void;
|
|
36
41
|
registerToolData(toolData: IToolData): IDisposable;
|
|
37
42
|
private _refreshAllToolContextKeys;
|
|
38
43
|
registerToolImplementation(id: string, tool: IToolImpl): IDisposable;
|
|
39
|
-
getTools(): Iterable<Readonly<IToolData>>;
|
|
44
|
+
getTools(includeDisabled?: boolean): Iterable<Readonly<IToolData>>;
|
|
40
45
|
getTool(id: string): IToolData | undefined;
|
|
41
46
|
private _getToolEntry;
|
|
42
|
-
getToolByName(name: string): IToolData | undefined;
|
|
47
|
+
getToolByName(name: string, includeDisabled?: boolean): IToolData | undefined;
|
|
43
48
|
setToolAutoConfirmation(toolId: string, scope: "workspace" | "profile" | "memory", autoConfirm?: boolean): void;
|
|
44
49
|
resetToolAutoConfirmation(): void;
|
|
45
50
|
invokeTool(dto: IToolInvocation, countTokens: CountTokensCallback, token: CancellationToken): Promise<IToolResult>;
|
|
46
51
|
private prepareToolInvocation;
|
|
52
|
+
private playAccessibilitySignal;
|
|
47
53
|
private ensureToolDetails;
|
|
48
54
|
private formatToolInput;
|
|
49
55
|
private toolResultToIO;
|
|
50
56
|
private shouldAutoConfirm;
|
|
51
57
|
private cleanupCallDisposables;
|
|
52
58
|
cancelToolCallsForRequest(requestId: string): void;
|
|
53
|
-
|
|
59
|
+
toEnablementMap(toolOrToolsetNames: Iterable<string>): Record<string, boolean>;
|
|
60
|
+
private readonly _toolSets;
|
|
61
|
+
readonly toolSets: IObservable<Iterable<ToolSet>>;
|
|
62
|
+
getToolSetByName(name: string): ToolSet | undefined;
|
|
63
|
+
createToolSet(source: ToolDataSource, id: string, referenceName: string, options?: {
|
|
64
|
+
icon?: ThemeIcon;
|
|
65
|
+
description?: string;
|
|
66
|
+
}): ToolSet & IDisposable;
|
|
54
67
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { getActiveDocument } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
4
|
import { renderStringAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
4
5
|
import { assertNever } from '@codingame/monaco-vscode-api/vscode/vs/base/common/assert';
|
|
5
6
|
import { RunOnceScheduler } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
6
7
|
import { encodeBase64 } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
7
8
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
9
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
8
10
|
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
9
11
|
import { CancellationError, isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
10
12
|
import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
@@ -12,7 +14,10 @@ import { Iterable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/ite
|
|
|
12
14
|
import { Lazy } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lazy';
|
|
13
15
|
import { Disposable, DisposableStore, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
14
16
|
import { LRUCache } from '@codingame/monaco-vscode-api/vscode/vs/base/common/map';
|
|
17
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
15
18
|
import { IAccessibilityService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/common/accessibility.service';
|
|
19
|
+
import { AccessibilitySignal } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService';
|
|
20
|
+
import { IAccessibilitySignalService } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service';
|
|
16
21
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
22
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
18
23
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
@@ -28,13 +33,14 @@ import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
28
33
|
import { ChatToolInvocation } from '../common/chatProgressTypes/chatToolInvocation.js';
|
|
29
34
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
30
35
|
import { ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
31
|
-
import { createToolSchemaUri, stringifyPromptTsxPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService';
|
|
36
|
+
import { createToolSchemaUri, stringifyPromptTsxPart, ToolSet } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService';
|
|
32
37
|
import { getToolConfirmationAlert } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/chatAccessibilityProvider';
|
|
38
|
+
import { ObservableSet } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/set';
|
|
33
39
|
|
|
34
40
|
var ToolConfirmStore_1;
|
|
35
41
|
const jsonSchemaRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
36
42
|
let LanguageModelToolsService = class LanguageModelToolsService extends Disposable {
|
|
37
|
-
constructor(_instantiationService, _extensionService, _contextKeyService, _chatService, _dialogService, _telemetryService, _logService, _configurationService, _accessibilityService) {
|
|
43
|
+
constructor(_instantiationService, _extensionService, _contextKeyService, _chatService, _dialogService, _telemetryService, _logService, _configurationService, _accessibilityService, _accessibilitySignalService) {
|
|
38
44
|
super();
|
|
39
45
|
this._instantiationService = _instantiationService;
|
|
40
46
|
this._extensionService = _extensionService;
|
|
@@ -45,6 +51,7 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
45
51
|
this._logService = _logService;
|
|
46
52
|
this._configurationService = _configurationService;
|
|
47
53
|
this._accessibilityService = _accessibilityService;
|
|
54
|
+
this._accessibilitySignalService = _accessibilitySignalService;
|
|
48
55
|
this._onDidChangeTools = ( new Emitter());
|
|
49
56
|
this.onDidChangeTools = this._onDidChangeTools.event;
|
|
50
57
|
this._onDidChangeToolsScheduler = ( new RunOnceScheduler(() => this._onDidChangeTools.fire(), 750));
|
|
@@ -52,6 +59,8 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
52
59
|
this._toolContextKeys = ( new Set());
|
|
53
60
|
this._callsByRequestId = ( new Map());
|
|
54
61
|
this._memoryToolConfirmStore = ( new Set());
|
|
62
|
+
this._toolSets = ( new ObservableSet());
|
|
63
|
+
this.toolSets = this._toolSets.observable;
|
|
55
64
|
this._workspaceToolConfirmStore = ( new Lazy(
|
|
56
65
|
() => this._register(this._instantiationService.createInstance(ToolConfirmStore, StorageScope.WORKSPACE))
|
|
57
66
|
));
|
|
@@ -70,6 +79,11 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
70
79
|
}));
|
|
71
80
|
this._ctxToolsCount = ChatContextKeys.Tools.toolsCount.bindTo(_contextKeyService);
|
|
72
81
|
}
|
|
82
|
+
dispose() {
|
|
83
|
+
super.dispose();
|
|
84
|
+
this._callsByRequestId.forEach(calls => calls.forEach(call => call.store.dispose()));
|
|
85
|
+
this._ctxToolsCount.reset();
|
|
86
|
+
}
|
|
73
87
|
registerToolData(toolData) {
|
|
74
88
|
if (( this._tools.has(toolData.id))) {
|
|
75
89
|
throw ( new Error(`Tool "${toolData.id}" is already registered.`));
|
|
@@ -112,14 +126,12 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
112
126
|
entry.impl = undefined;
|
|
113
127
|
});
|
|
114
128
|
}
|
|
115
|
-
getTools() {
|
|
129
|
+
getTools(includeDisabled) {
|
|
116
130
|
const toolDatas = ( Iterable.map(( this._tools.values()), i => i.data));
|
|
117
131
|
const extensionToolsEnabled = this._configurationService.getValue(ChatConfiguration.ExtensionToolsEnabled);
|
|
118
132
|
return Iterable.filter(toolDatas, toolData => {
|
|
119
|
-
const satisfiesWhenClause = !toolData.when || this._contextKeyService.contextMatchesRules(toolData.when);
|
|
120
|
-
const satisfiesExternalToolCheck = toolData.source.type
|
|
121
|
-
!toolData.source.isExternalTool :
|
|
122
|
-
true;
|
|
133
|
+
const satisfiesWhenClause = includeDisabled || !toolData.when || this._contextKeyService.contextMatchesRules(toolData.when);
|
|
134
|
+
const satisfiesExternalToolCheck = toolData.source.type !== 'extension' || !!extensionToolsEnabled;
|
|
123
135
|
return satisfiesWhenClause && satisfiesExternalToolCheck;
|
|
124
136
|
});
|
|
125
137
|
}
|
|
@@ -135,10 +147,10 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
135
147
|
return undefined;
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
|
-
getToolByName(name) {
|
|
139
|
-
for (const
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
150
|
+
getToolByName(name, includeDisabled) {
|
|
151
|
+
for (const tool of this.getTools(!!includeDisabled)) {
|
|
152
|
+
if (tool.toolReferenceName === name) {
|
|
153
|
+
return tool;
|
|
142
154
|
}
|
|
143
155
|
}
|
|
144
156
|
return undefined;
|
|
@@ -206,12 +218,15 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
206
218
|
const prepared = await this.prepareToolInvocation(tool, dto, token);
|
|
207
219
|
toolInvocation = ( new ChatToolInvocation(prepared, tool.data, dto.callId));
|
|
208
220
|
trackedCall.invocation = toolInvocation;
|
|
209
|
-
|
|
221
|
+
const autoConfirmed = this.shouldAutoConfirm(tool.data.id, tool.data.runsInWorkspace);
|
|
222
|
+
if (autoConfirmed) {
|
|
210
223
|
toolInvocation.confirmed.complete(true);
|
|
211
224
|
}
|
|
212
225
|
model.acceptResponseProgress(request, toolInvocation);
|
|
213
226
|
if (prepared?.confirmationMessages) {
|
|
214
|
-
|
|
227
|
+
if (!toolInvocation.isConfirmed && !autoConfirmed) {
|
|
228
|
+
this.playAccessibilitySignal([toolInvocation]);
|
|
229
|
+
}
|
|
215
230
|
const userConfirmed = await toolInvocation.confirmed.p;
|
|
216
231
|
if (!userConfirmed) {
|
|
217
232
|
throw ( new CancellationError());
|
|
@@ -225,8 +240,8 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
225
240
|
}
|
|
226
241
|
else {
|
|
227
242
|
const prepared = await this.prepareToolInvocation(tool, dto, token);
|
|
228
|
-
if (prepared?.confirmationMessages) {
|
|
229
|
-
const result = await this._dialogService.confirm({ message: prepared.confirmationMessages.title, detail: renderStringAsPlaintext(prepared.confirmationMessages.message) });
|
|
243
|
+
if (prepared?.confirmationMessages && !this.shouldAutoConfirm(tool.data.id, tool.data.runsInWorkspace)) {
|
|
244
|
+
const result = await this._dialogService.confirm({ message: renderStringAsPlaintext(prepared.confirmationMessages.title), detail: renderStringAsPlaintext(prepared.confirmationMessages.message) });
|
|
230
245
|
if (!result.confirmed) {
|
|
231
246
|
throw ( new CancellationError());
|
|
232
247
|
}
|
|
@@ -263,7 +278,7 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
263
278
|
toolResult ??= { content: [] };
|
|
264
279
|
toolResult.toolResultError = err instanceof Error ? err.message : String(err);
|
|
265
280
|
if (tool.data.alwaysDisplayInputOutput) {
|
|
266
|
-
toolResult.toolResultDetails = { input: this.formatToolInput(dto), output: [{
|
|
281
|
+
toolResult.toolResultDetails = { input: this.formatToolInput(dto), output: [{ isText: true, value: String(err) }], isError: true };
|
|
267
282
|
}
|
|
268
283
|
throw err;
|
|
269
284
|
}
|
|
@@ -291,6 +306,22 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
291
306
|
}
|
|
292
307
|
return prepared;
|
|
293
308
|
}
|
|
309
|
+
playAccessibilitySignal(toolInvocations) {
|
|
310
|
+
const hasFocusedWindow = getActiveDocument().hasFocus();
|
|
311
|
+
const autoApproved = this._configurationService.getValue('chat.tools.autoApprove');
|
|
312
|
+
if (autoApproved) {
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
const setting = this._configurationService.getValue(AccessibilitySignal.chatUserActionRequired.settingsKey);
|
|
316
|
+
if (!setting) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
const soundEnabled = setting.sound === 'on' || (setting.sound === 'auto' && (this._accessibilityService.isScreenReaderOptimized() || !hasFocusedWindow));
|
|
320
|
+
const announcementEnabled = this._accessibilityService.isScreenReaderOptimized() && setting.announcement === 'auto';
|
|
321
|
+
if (soundEnabled || announcementEnabled) {
|
|
322
|
+
this._accessibilitySignalService.playSignal(AccessibilitySignal.chatUserActionRequired, { customAlertMessage: this._instantiationService.invokeFunction(getToolConfirmationAlert, toolInvocations), userGesture: true, modality: !soundEnabled ? 'announcement' : undefined });
|
|
323
|
+
}
|
|
324
|
+
}
|
|
294
325
|
ensureToolDetails(dto, toolResult, toolData) {
|
|
295
326
|
if (!toolResult.toolResultDetails && toolData.alwaysDisplayInputOutput) {
|
|
296
327
|
toolResult.toolResultDetails = {
|
|
@@ -305,13 +336,13 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
305
336
|
toolResultToIO(toolResult) {
|
|
306
337
|
return ( toolResult.content.map(part => {
|
|
307
338
|
if (part.kind === 'text') {
|
|
308
|
-
return {
|
|
339
|
+
return { isText: true, value: part.value };
|
|
309
340
|
}
|
|
310
341
|
else if (part.kind === 'promptTsx') {
|
|
311
|
-
return {
|
|
342
|
+
return { isText: true, value: stringifyPromptTsxPart(part) };
|
|
312
343
|
}
|
|
313
344
|
else if (part.kind === 'data') {
|
|
314
|
-
return {
|
|
345
|
+
return { value: encodeBase64(part.value.data), mimeType: part.value.mimeType };
|
|
315
346
|
}
|
|
316
347
|
else {
|
|
317
348
|
assertNever();
|
|
@@ -352,10 +383,49 @@ let LanguageModelToolsService = class LanguageModelToolsService extends Disposab
|
|
|
352
383
|
this._callsByRequestId.delete(requestId);
|
|
353
384
|
}
|
|
354
385
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.
|
|
386
|
+
toEnablementMap(toolOrToolsetNames) {
|
|
387
|
+
const toolOrToolset = ( new Set(toolOrToolsetNames));
|
|
388
|
+
const result = {};
|
|
389
|
+
for (const tool of ( this._tools.values())) {
|
|
390
|
+
if (tool.data.toolReferenceName && ( toolOrToolset.has(tool.data.toolReferenceName)) || ( toolOrToolset.has(tool.data.id))) {
|
|
391
|
+
result[tool.data.id] = true;
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
result[tool.data.id] = false;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
for (const toolSet of this._toolSets) {
|
|
398
|
+
if (( toolOrToolset.has(toolSet.referenceName))) {
|
|
399
|
+
result[toolSet.referenceName] = true;
|
|
400
|
+
}
|
|
401
|
+
for (const tool of toolSet.getTools()) {
|
|
402
|
+
if (( toolOrToolset.has(tool.id))) {
|
|
403
|
+
result[tool.id] = true;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
return result;
|
|
408
|
+
}
|
|
409
|
+
getToolSetByName(name) {
|
|
410
|
+
for (const toolSet of this._toolSets) {
|
|
411
|
+
if (toolSet.referenceName === name) {
|
|
412
|
+
return toolSet;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return undefined;
|
|
416
|
+
}
|
|
417
|
+
createToolSet(source, id, referenceName, options) {
|
|
418
|
+
const that = this;
|
|
419
|
+
const result = new (class extends ToolSet {
|
|
420
|
+
dispose() {
|
|
421
|
+
if (( that._toolSets.has(result))) {
|
|
422
|
+
this._tools.clear();
|
|
423
|
+
that._toolSets.delete(result);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
})(id, referenceName, options?.icon ?? Codicon.tools, source, options?.description);
|
|
427
|
+
this._toolSets.add(result);
|
|
428
|
+
return result;
|
|
359
429
|
}
|
|
360
430
|
};
|
|
361
431
|
LanguageModelToolsService = ( __decorate([
|
|
@@ -367,7 +437,8 @@ LanguageModelToolsService = ( __decorate([
|
|
|
367
437
|
( __param(5, ITelemetryService)),
|
|
368
438
|
( __param(6, ILogService)),
|
|
369
439
|
( __param(7, IConfigurationService)),
|
|
370
|
-
( __param(8, IAccessibilityService))
|
|
440
|
+
( __param(8, IAccessibilityService)),
|
|
441
|
+
( __param(9, IAccessibilitySignalService))
|
|
371
442
|
], LanguageModelToolsService));
|
|
372
443
|
let ToolConfirmStore = class ToolConfirmStore extends Disposable {
|
|
373
444
|
static { ToolConfirmStore_1 = this; }
|
|
@@ -1,14 +1,101 @@
|
|
|
1
|
+
@property --chat-setup-dialog-glow-angle {
|
|
2
|
+
syntax: '<angle>';
|
|
3
|
+
initial-value: 0deg;
|
|
4
|
+
inherits: false;
|
|
5
|
+
}
|
|
6
|
+
@keyframes chat-setup-dialog-glow-angle-animation {
|
|
7
|
+
0% {
|
|
8
|
+
--chat-setup-dialog-glow-angle: 0deg;
|
|
9
|
+
}
|
|
10
|
+
100% {
|
|
11
|
+
--chat-setup-dialog-glow-angle: 360deg;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.chat-setup-dialog.chat-setup-glow {
|
|
15
|
+
border: 2px solid !important;
|
|
16
|
+
border-image: linear-gradient(var(--chat-setup-dialog-glow-angle), var(--vscode-button-background) 0, var(--vscode-editorGutter-addedBackground)) 1 !important;
|
|
17
|
+
animation: 3s chat-setup-dialog-glow-angle-animation linear infinite;
|
|
18
|
+
}
|
|
1
19
|
.chat-setup-dialog {
|
|
20
|
+
.dialog-buttons-row > .dialog-buttons > .monaco-button.continue-button::before {
|
|
21
|
+
content: '';
|
|
22
|
+
background-size: 16px;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
background-position: left center;
|
|
25
|
+
padding-right: 6px;
|
|
26
|
+
width: 16px;
|
|
27
|
+
height: 22px;
|
|
28
|
+
line-height: inherit !important;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
}
|
|
31
|
+
.dialog-buttons-row > .dialog-buttons > .monaco-button.continue-button.default::before {
|
|
32
|
+
background-image: url('./github.svg');
|
|
33
|
+
}
|
|
34
|
+
.dialog-buttons-row > .dialog-buttons > .monaco-button.continue-button.alternate::before {
|
|
35
|
+
background-image: url('./google.svg');
|
|
36
|
+
}
|
|
37
|
+
.dialog-buttons-row > .dialog-buttons > .monaco-button.link-button {
|
|
38
|
+
border: 0 !important;
|
|
39
|
+
background-color: unset !important;
|
|
40
|
+
color: var(--vscode-textLink-foreground) !important;
|
|
41
|
+
width: fit-content;
|
|
42
|
+
margin-left: auto;
|
|
43
|
+
margin-right: auto;
|
|
44
|
+
}
|
|
45
|
+
.dialog-buttons-row > .dialog-buttons > .monaco-button.link-button.skip-button {
|
|
46
|
+
font-size: 11px;
|
|
47
|
+
color: var(--vscode-descriptionForeground) !important;
|
|
48
|
+
}
|
|
49
|
+
.chat-setup-dialog-footer {
|
|
50
|
+
font-size: 11px;
|
|
51
|
+
color: var(--vscode-descriptionForeground);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.chat-setup-input-email {
|
|
55
|
+
.dialog-message-container,
|
|
56
|
+
.dialog-message-input {
|
|
57
|
+
width: 100% !important;
|
|
58
|
+
}
|
|
59
|
+
.buttons-separator {
|
|
60
|
+
display: flex;
|
|
61
|
+
width: 100%;
|
|
62
|
+
margin-top: 10px;
|
|
63
|
+
margin-bottom: 10px;
|
|
64
|
+
height: 20px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
.buttons-separator-left {
|
|
68
|
+
width: 100%;
|
|
69
|
+
margin-right: 5px;
|
|
70
|
+
border-top: 1px solid var(--vscode-descriptionForeground);
|
|
71
|
+
}
|
|
72
|
+
.buttons-separator-right {
|
|
73
|
+
width: 100%;
|
|
74
|
+
margin-left: 5px;
|
|
75
|
+
border-top: 1px solid var(--vscode-descriptionForeground);
|
|
76
|
+
}
|
|
77
|
+
.dialog-buttons-row {
|
|
78
|
+
padding: 5px 10px 10px !important;
|
|
79
|
+
}
|
|
80
|
+
.monaco-inputbox {
|
|
81
|
+
width: 100% !important;
|
|
82
|
+
margin-left: 5px !important;
|
|
83
|
+
margin-right: 5px !important;
|
|
84
|
+
height: 30px;
|
|
85
|
+
}
|
|
86
|
+
.monaco-inputbox .ibwrapper {
|
|
87
|
+
height: 30px;
|
|
88
|
+
}
|
|
89
|
+
.monaco-inputbox .input {
|
|
90
|
+
height: 30px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
.chat-setup-dialog-legacy {
|
|
2
94
|
p {
|
|
3
95
|
margin-top: 0;
|
|
4
96
|
margin-bottom: 0;
|
|
5
97
|
width: 100%;
|
|
6
98
|
}
|
|
7
|
-
p.setup-legal {
|
|
8
|
-
font-size: 12px;
|
|
9
|
-
color: var(--vscode-descriptionForeground);
|
|
10
|
-
margin-top: 2em;
|
|
11
|
-
}
|
|
12
99
|
p.setup-settings {
|
|
13
100
|
font-size: 12px;
|
|
14
101
|
color: var(--vscode-descriptionForeground);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="98" height="96" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="#fff"/></svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M15.68 8.18184C15.68 7.61456 15.6291 7.06912 15.5346 6.54544H8V9.64H12.3054C12.12 10.64 11.5564 11.4873 10.7091 12.0546V14.0618H13.2946C14.8073 12.6691 15.68 10.6182 15.68 8.18184Z" fill="#4285F4"/>
|
|
3
|
+
<path d="M7.99995 16C10.16 16 11.9708 15.2836 13.2944 14.0618L10.709 12.0545C9.99267 12.5345 9.07627 12.8181 7.99995 12.8181C5.91627 12.8181 4.15267 11.4109 3.52355 9.51999H0.85083V11.5927C2.16723 14.2073 4.87267 16 7.99995 16Z" fill="#34A853"/>
|
|
4
|
+
<path d="M3.5236 9.52001C3.3636 9.04001 3.27272 8.52729 3.27272 8.00001C3.27272 7.47273 3.3636 6.96001 3.5236 6.48001V4.40729H0.85088C0.30912 5.48729 0 6.70913 0 8.00001C0 9.29089 0.30912 10.5127 0.85088 11.5927L3.5236 9.52001Z" fill="#FBBC04"/>
|
|
5
|
+
<path d="M7.99995 3.18184C9.17443 3.18184 10.229 3.58544 11.0581 4.37816L13.3527 2.0836C11.9672 0.79272 10.1563 0 7.99995 0C4.87267 0 2.16723 1.79272 0.85083 4.40728L3.52355 6.48C4.15267 4.58912 5.91627 3.18184 7.99995 3.18184Z" fill="#E94235"/>
|
|
6
|
+
</svg>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.element-selection-message,
|
|
2
|
-
.element-expand-container
|
|
2
|
+
.element-expand-container,
|
|
3
|
+
.connecting-webview-element {
|
|
3
4
|
position: absolute;
|
|
4
5
|
bottom: 10px;
|
|
5
6
|
right: 10px;
|
|
@@ -20,15 +21,20 @@
|
|
|
20
21
|
bottom: 10px;
|
|
21
22
|
right: 10px;
|
|
22
23
|
}
|
|
23
|
-
.element-expand-container
|
|
24
|
+
.element-expand-container,
|
|
25
|
+
.connecting-webview-element {
|
|
24
26
|
bottom: 15px;
|
|
25
27
|
right: 15px;
|
|
26
28
|
}
|
|
27
|
-
.element-selection-cancel
|
|
28
|
-
.element-selection-start {
|
|
29
|
+
.element-selection-cancel {
|
|
29
30
|
padding: 2px 8px;
|
|
30
31
|
width: fit-content;
|
|
31
32
|
}
|
|
33
|
+
.element-selection-message .monaco-button-dropdown > .monaco-button.monaco-text-button {
|
|
34
|
+
height: 24px;
|
|
35
|
+
align-content: center;
|
|
36
|
+
padding: 0px 5px;
|
|
37
|
+
}
|
|
32
38
|
.element-selection-message .monaco-button.codicon.codicon-close,
|
|
33
39
|
.element-expand-container .monaco-button.codicon.codicon-layout,
|
|
34
40
|
.element-selection-message .monaco-button.codicon.codicon-chevron-right,
|