@codingame/monaco-vscode-chat-service-override 11.1.2 → 12.0.1
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.d.ts +2 -1
- package/index.js +64 -1
- package/package.json +32 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +73 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +73 -81
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +73 -112
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +253 -101
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +16 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +30 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +22 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +23 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +50 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +124 -95
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEdinputInputContentProvider.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.d.ts +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingService.js +203 -182
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +103 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +458 -165
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +14 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatParticipantContributions.js → chatParticipant.contribution.js} +101 -92
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +164 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +10 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +941 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +32 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +8 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +16 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib.js +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/editorHoverWrapper.js +3 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/media/editorHoverWrapper.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +70 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewSetup.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/{chatViewsWelcomeContributions.js → chatViewsWelcomeHandler.js} +13 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.js +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +152 -104
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +23 -21
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsParametersSchema.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.service.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +30 -33
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +6 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +9 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +247 -83
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +5 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +35 -35
- package/chat.js +0 -59
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.js +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +0 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +0 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +0 -287
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -172
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerChatDeveloperActions(): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
2
3
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
@@ -12,7 +13,7 @@ class LogChatInputHistoryAction extends Action2 {
|
|
|
12
13
|
constructor() {
|
|
13
14
|
super({
|
|
14
15
|
id: LogChatInputHistoryAction.ID,
|
|
15
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4217, "Log Chat Input History")),
|
|
16
17
|
icon: Codicon.attach,
|
|
17
18
|
category: Categories.Developer,
|
|
18
19
|
f1: true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerChatFileTreeActions(): void;
|
|
@@ -1,23 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
1
3
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
2
4
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
|
-
import '
|
|
5
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
6
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
4
7
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
5
|
-
import {
|
|
6
|
-
import { isResponseVM } from '@codingame/monaco-vscode-
|
|
7
|
-
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
8
|
+
import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
9
|
+
import { isResponseVM } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
8
10
|
|
|
9
11
|
function registerChatFileTreeActions() {
|
|
10
12
|
registerAction2(class NextFileTreeAction extends Action2 {
|
|
11
13
|
constructor() {
|
|
12
14
|
super({
|
|
13
15
|
id: 'workbench.action.chat.nextFileTree',
|
|
14
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4230, "Next File Tree")),
|
|
15
17
|
keybinding: {
|
|
16
|
-
primary:
|
|
17
|
-
weight:
|
|
18
|
-
when:
|
|
18
|
+
primary: KeyMod.CtrlCmd | KeyCode.F9,
|
|
19
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
20
|
+
when: ChatContextKeys.inChatSession,
|
|
19
21
|
},
|
|
20
|
-
precondition:
|
|
22
|
+
precondition: ChatContextKeys.enabled,
|
|
21
23
|
f1: true,
|
|
22
24
|
category: CHAT_CATEGORY,
|
|
23
25
|
});
|
|
@@ -30,13 +32,13 @@ function registerChatFileTreeActions() {
|
|
|
30
32
|
constructor() {
|
|
31
33
|
super({
|
|
32
34
|
id: 'workbench.action.chat.previousFileTree',
|
|
33
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4231, "Previous File Tree")),
|
|
34
36
|
keybinding: {
|
|
35
|
-
primary:
|
|
36
|
-
weight:
|
|
37
|
-
when:
|
|
37
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.F9,
|
|
38
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
39
|
+
when: ChatContextKeys.inChatSession,
|
|
38
40
|
},
|
|
39
|
-
precondition:
|
|
41
|
+
precondition: ChatContextKeys.enabled,
|
|
40
42
|
f1: true,
|
|
41
43
|
category: CHAT_CATEGORY,
|
|
42
44
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
2
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IProductService } from "vscode/vscode/vs/platform/product/common/productService.service";
|
|
4
|
+
import { ICommandService } from "vscode/vscode/vs/platform/commands/common/commands.service";
|
|
5
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
6
|
+
import { IExtensionManagementService } from "vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service";
|
|
7
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
8
|
+
import { IViewDescriptorService } from "vscode/vscode/vs/workbench/common/views.service";
|
|
9
|
+
import { IWorkbenchLayoutService } from "vscode/vscode/vs/workbench/services/layout/browser/layoutService.service";
|
|
10
|
+
export declare class ChatGettingStartedContribution extends Disposable implements IWorkbenchContribution {
|
|
11
|
+
private readonly productService;
|
|
12
|
+
private readonly extensionService;
|
|
13
|
+
private readonly commandService;
|
|
14
|
+
private readonly extensionManagementService;
|
|
15
|
+
private readonly storageService;
|
|
16
|
+
private readonly viewDescriptorService;
|
|
17
|
+
private readonly layoutService;
|
|
18
|
+
static readonly ID = "workbench.contrib.chatGettingStarted";
|
|
19
|
+
private recentlyInstalled;
|
|
20
|
+
private static readonly hideWelcomeView;
|
|
21
|
+
constructor(productService: IProductService, extensionService: IExtensionService, commandService: ICommandService, extensionManagementService: IExtensionManagementService, storageService: IStorageService, viewDescriptorService: IViewDescriptorService, layoutService: IWorkbenchLayoutService);
|
|
22
|
+
private registerListeners;
|
|
23
|
+
}
|
|
@@ -1,31 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
4
|
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
4
5
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
5
6
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
6
7
|
import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
7
|
-
import '@codingame/monaco-vscode-
|
|
8
|
+
import { CHAT_OPEN_ACTION_ID } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
9
|
+
import { InstallOperation } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
8
10
|
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
9
|
-
import {
|
|
11
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
12
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
13
|
+
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
14
|
+
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
15
|
+
import { ensureSideBarChatViewSize } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
10
16
|
|
|
17
|
+
var ChatGettingStartedContribution_1;
|
|
11
18
|
let ChatGettingStartedContribution = class ChatGettingStartedContribution extends Disposable {
|
|
19
|
+
static { ChatGettingStartedContribution_1 = this; }
|
|
12
20
|
static { this.ID = 'workbench.contrib.chatGettingStarted'; }
|
|
13
|
-
|
|
21
|
+
static { this.hideWelcomeView = 'workbench.chat.hideWelcomeView'; }
|
|
22
|
+
constructor(productService, extensionService, commandService, extensionManagementService, storageService, viewDescriptorService, layoutService) {
|
|
14
23
|
super();
|
|
15
24
|
this.productService = productService;
|
|
16
25
|
this.extensionService = extensionService;
|
|
17
26
|
this.commandService = commandService;
|
|
18
27
|
this.extensionManagementService = extensionManagementService;
|
|
28
|
+
this.storageService = storageService;
|
|
29
|
+
this.viewDescriptorService = viewDescriptorService;
|
|
30
|
+
this.layoutService = layoutService;
|
|
19
31
|
this.recentlyInstalled = false;
|
|
20
|
-
|
|
32
|
+
const defaultChatAgent = this.productService.defaultChatAgent;
|
|
33
|
+
const hideWelcomeView = this.storageService.getBoolean(ChatGettingStartedContribution_1.hideWelcomeView, StorageScope.APPLICATION, false);
|
|
34
|
+
if (!defaultChatAgent || hideWelcomeView) {
|
|
21
35
|
return;
|
|
22
36
|
}
|
|
23
|
-
this.registerListeners();
|
|
37
|
+
this.registerListeners(defaultChatAgent);
|
|
24
38
|
}
|
|
25
|
-
registerListeners() {
|
|
39
|
+
registerListeners(defaultChatAgent) {
|
|
26
40
|
this._register(this.extensionManagementService.onDidInstallExtensions(async (result) => {
|
|
27
41
|
for (const e of result) {
|
|
28
|
-
if (ExtensionIdentifier.equals(
|
|
42
|
+
if (ExtensionIdentifier.equals(defaultChatAgent.extensionId, e.identifier.id) && e.operation === InstallOperation.Install) {
|
|
29
43
|
this.recentlyInstalled = true;
|
|
30
44
|
return;
|
|
31
45
|
}
|
|
@@ -33,10 +47,12 @@ let ChatGettingStartedContribution = class ChatGettingStartedContribution extend
|
|
|
33
47
|
}));
|
|
34
48
|
this._register(this.extensionService.onDidChangeExtensionsStatus(async (event) => {
|
|
35
49
|
for (const ext of event) {
|
|
36
|
-
if (ExtensionIdentifier.equals(
|
|
50
|
+
if (ExtensionIdentifier.equals(defaultChatAgent.extensionId, ext.value)) {
|
|
37
51
|
const extensionStatus = this.extensionService.getExtensionsStatus();
|
|
38
52
|
if (extensionStatus[ext.value].activationTimes && this.recentlyInstalled) {
|
|
39
53
|
await this.commandService.executeCommand(CHAT_OPEN_ACTION_ID);
|
|
54
|
+
ensureSideBarChatViewSize(400, this.viewDescriptorService, this.layoutService);
|
|
55
|
+
this.storageService.store(ChatGettingStartedContribution_1.hideWelcomeView, true, StorageScope.APPLICATION, StorageTarget.MACHINE);
|
|
40
56
|
this.recentlyInstalled = false;
|
|
41
57
|
return;
|
|
42
58
|
}
|
|
@@ -45,11 +61,14 @@ let ChatGettingStartedContribution = class ChatGettingStartedContribution extend
|
|
|
45
61
|
}));
|
|
46
62
|
}
|
|
47
63
|
};
|
|
48
|
-
ChatGettingStartedContribution = ( __decorate([
|
|
64
|
+
ChatGettingStartedContribution = ChatGettingStartedContribution_1 = ( __decorate([
|
|
49
65
|
( __param(0, IProductService)),
|
|
50
66
|
( __param(1, IExtensionService)),
|
|
51
67
|
( __param(2, ICommandService)),
|
|
52
|
-
( __param(3, IExtensionManagementService))
|
|
68
|
+
( __param(3, IExtensionManagementService)),
|
|
69
|
+
( __param(4, IStorageService)),
|
|
70
|
+
( __param(5, IViewDescriptorService)),
|
|
71
|
+
( __param(6, IWorkbenchLayoutService))
|
|
53
72
|
], ChatGettingStartedContribution));
|
|
54
73
|
|
|
55
74
|
export { ChatGettingStartedContribution };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerChatExportActions(): void;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
+
|
|
1
2
|
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
2
3
|
import { joinPath } from 'vscode/vscode/vs/base/common/resources';
|
|
3
4
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
4
5
|
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
5
6
|
import { IFileDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
6
7
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
7
|
-
import '@codingame/monaco-vscode-
|
|
8
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
8
9
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
9
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
10
|
-
import {
|
|
11
|
-
import { isExportableSessionData } from '@codingame/monaco-vscode-
|
|
10
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
11
|
+
import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
12
|
+
import { isExportableSessionData } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
12
13
|
import { IChatService } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
13
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
|
-
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
15
15
|
|
|
16
16
|
const defaultFileName = 'chat.json';
|
|
17
|
-
const filters = [{ name: ( localize(
|
|
17
|
+
const filters = [{ name: ( localize(4232, "Chat Session")), extensions: ['json'] }];
|
|
18
18
|
function registerChatExportActions() {
|
|
19
19
|
registerAction2(class ExportChatAction extends Action2 {
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.chat.export',
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
|
-
title: ( localize2(
|
|
25
|
-
precondition:
|
|
24
|
+
title: ( localize2(4233, "Export Chat...")),
|
|
25
|
+
precondition: ChatContextKeys.enabled,
|
|
26
26
|
f1: true,
|
|
27
27
|
});
|
|
28
28
|
}
|
|
@@ -55,9 +55,9 @@ function registerChatExportActions() {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: 'workbench.action.chat.import',
|
|
58
|
-
title: ( localize2(
|
|
58
|
+
title: ( localize2(4234, "Import Chat...")),
|
|
59
59
|
category: CHAT_CATEGORY,
|
|
60
|
-
precondition:
|
|
60
|
+
precondition: ChatContextKeys.enabled,
|
|
61
61
|
f1: true,
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -76,9 +76,9 @@ function registerChatExportActions() {
|
|
|
76
76
|
}
|
|
77
77
|
const content = await fileService.readFile(result[0]);
|
|
78
78
|
try {
|
|
79
|
-
const data = JSON.parse((
|
|
79
|
+
const data = JSON.parse(( content.value.toString()));
|
|
80
80
|
if (!isExportableSessionData(data)) {
|
|
81
|
-
throw (
|
|
81
|
+
throw ( new Error('Invalid chat session data'));
|
|
82
82
|
}
|
|
83
83
|
const options = { target: { data }, pinned: true };
|
|
84
84
|
await editorService.openEditor({ resource: ChatEditorInput.getNewEditorUri(), options });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function registerMoveActions(): void;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
+
|
|
1
2
|
import { localize2 } from 'vscode/vscode/vs/nls';
|
|
2
3
|
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
4
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
4
5
|
import { ActiveEditorContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
5
|
-
import '@codingame/monaco-vscode-
|
|
6
|
-
import {
|
|
6
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
7
|
+
import { ChatViewId } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
7
8
|
import { IChatWidgetService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
8
9
|
import { ChatEditor } from '../chatEditor.js';
|
|
9
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
10
|
-
import {
|
|
10
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
11
|
+
import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
11
12
|
import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
12
13
|
import { AUX_WINDOW_GROUP, ACTIVE_GROUP } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
13
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
14
15
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
15
16
|
import { isChatViewTitleActionContext } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatActions';
|
|
16
|
-
import { CHAT_CATEGORY } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
17
17
|
|
|
18
18
|
var MoveToNewLocation;
|
|
19
|
-
( (
|
|
19
|
+
(function (MoveToNewLocation) {
|
|
20
20
|
MoveToNewLocation["Editor"] = "Editor";
|
|
21
21
|
MoveToNewLocation["Window"] = "Window";
|
|
22
|
-
})(MoveToNewLocation || (MoveToNewLocation = {}))
|
|
22
|
+
})(MoveToNewLocation || (MoveToNewLocation = {}));
|
|
23
23
|
function registerMoveActions() {
|
|
24
24
|
registerAction2(class GlobalMoveToEditorAction extends Action2 {
|
|
25
25
|
constructor() {
|
|
26
26
|
super({
|
|
27
27
|
id: `workbench.action.chat.openInEditor`,
|
|
28
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(4235, "Open Chat in Editor")),
|
|
29
29
|
category: CHAT_CATEGORY,
|
|
30
|
-
precondition:
|
|
30
|
+
precondition: ChatContextKeys.enabled,
|
|
31
31
|
f1: true,
|
|
32
32
|
menu: {
|
|
33
33
|
id: MenuId.ViewTitle,
|
|
34
|
-
when: (
|
|
35
|
-
order: 0
|
|
34
|
+
when: ( ContextKeyExpr.equals('view', ChatViewId)),
|
|
35
|
+
order: 0,
|
|
36
|
+
group: '1_open'
|
|
36
37
|
},
|
|
37
38
|
});
|
|
38
39
|
}
|
|
@@ -45,14 +46,15 @@ function registerMoveActions() {
|
|
|
45
46
|
constructor() {
|
|
46
47
|
super({
|
|
47
48
|
id: `workbench.action.chat.openInNewWindow`,
|
|
48
|
-
title: ( localize2(
|
|
49
|
+
title: ( localize2(4236, "Open Chat in New Window")),
|
|
49
50
|
category: CHAT_CATEGORY,
|
|
50
|
-
precondition:
|
|
51
|
+
precondition: ChatContextKeys.enabled,
|
|
51
52
|
f1: true,
|
|
52
53
|
menu: {
|
|
53
54
|
id: MenuId.ViewTitle,
|
|
54
|
-
when: (
|
|
55
|
-
order: 0
|
|
55
|
+
when: ( ContextKeyExpr.equals('view', ChatViewId)),
|
|
56
|
+
order: 0,
|
|
57
|
+
group: '1_open'
|
|
56
58
|
},
|
|
57
59
|
});
|
|
58
60
|
}
|
|
@@ -65,14 +67,14 @@ function registerMoveActions() {
|
|
|
65
67
|
constructor() {
|
|
66
68
|
super({
|
|
67
69
|
id: `workbench.action.chat.openInSidebar`,
|
|
68
|
-
title: ( localize2(
|
|
70
|
+
title: ( localize2(4237, "Open Chat in Side Bar")),
|
|
69
71
|
category: CHAT_CATEGORY,
|
|
70
|
-
precondition:
|
|
72
|
+
precondition: ChatContextKeys.enabled,
|
|
71
73
|
f1: true,
|
|
72
74
|
menu: [{
|
|
73
75
|
id: MenuId.EditorTitle,
|
|
74
76
|
order: 0,
|
|
75
|
-
when: (
|
|
77
|
+
when: ( ActiveEditorContext.isEqualTo(ChatEditorInput.EditorID)),
|
|
76
78
|
}]
|
|
77
79
|
});
|
|
78
80
|
}
|
|
@@ -109,11 +111,11 @@ async function moveToSidebar(accessor) {
|
|
|
109
111
|
let view;
|
|
110
112
|
if (chatEditor instanceof ChatEditor && chatEditorInput instanceof ChatEditorInput && chatEditorInput.sessionId) {
|
|
111
113
|
await editorService.closeEditor({ editor: chatEditor.input, groupId: editorGroupService.activeGroup.id });
|
|
112
|
-
view = await viewsService.openView(
|
|
114
|
+
view = await viewsService.openView(ChatViewId);
|
|
113
115
|
view.loadSession(chatEditorInput.sessionId, chatEditor.getViewState());
|
|
114
116
|
}
|
|
115
117
|
else {
|
|
116
|
-
view = await viewsService.openView(
|
|
118
|
+
view = await viewsService.openView(ChatViewId);
|
|
117
119
|
}
|
|
118
120
|
view.focus();
|
|
119
121
|
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
|
|
1
2
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
3
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
2
4
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
3
5
|
import { Selection } from 'vscode/vscode/vs/editor/common/core/selection';
|
|
4
6
|
import { localize2, localize } from 'vscode/vscode/vs/nls';
|
|
5
7
|
import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
6
|
-
import '
|
|
8
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
9
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
7
10
|
import { IQuickChatService } from 'vscode/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
8
|
-
import {
|
|
9
|
-
import { InlineChatController } from '@codingame/monaco-vscode-
|
|
10
|
-
import {
|
|
11
|
-
export { ASK_QUICK_QUESTION_ACTION_ID } from 'vscode/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
11
|
+
import { ChatContextKeys } from 'vscode/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
12
|
+
import { InlineChatController } from '@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
13
|
+
import { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
14
|
+
export { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-ea14e352-8f1c-5569-b79a-8a96a53e8abe-common/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
12
15
|
|
|
13
16
|
function registerQuickChatActions() {
|
|
14
17
|
registerAction2(QuickChatGlobalAction);
|
|
@@ -17,7 +20,7 @@ function registerQuickChatActions() {
|
|
|
17
20
|
constructor() {
|
|
18
21
|
super({
|
|
19
22
|
id: 'workbench.action.quickchat.openInChatView',
|
|
20
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(4238, "Open in Chat View")),
|
|
21
24
|
f1: false,
|
|
22
25
|
category: CHAT_CATEGORY,
|
|
23
26
|
icon: Codicon.commentDiscussion,
|
|
@@ -37,7 +40,7 @@ function registerQuickChatActions() {
|
|
|
37
40
|
constructor() {
|
|
38
41
|
super({
|
|
39
42
|
id: 'workbench.action.quickchat.close',
|
|
40
|
-
title: ( localize2(
|
|
43
|
+
title: ( localize2(4239, "Close Quick Chat")),
|
|
41
44
|
f1: false,
|
|
42
45
|
category: CHAT_CATEGORY,
|
|
43
46
|
icon: Codicon.close,
|
|
@@ -57,7 +60,7 @@ function registerQuickChatActions() {
|
|
|
57
60
|
constructor() {
|
|
58
61
|
super({
|
|
59
62
|
id: 'workbench.action.quickchat.launchInlineChat',
|
|
60
|
-
title: ( localize2(
|
|
63
|
+
title: ( localize2(4240, "Launch Inline Chat")),
|
|
61
64
|
f1: false,
|
|
62
65
|
category: CHAT_CATEGORY
|
|
63
66
|
});
|
|
@@ -85,22 +88,22 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
85
88
|
constructor() {
|
|
86
89
|
super({
|
|
87
90
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
88
|
-
title: ( localize2(
|
|
89
|
-
precondition:
|
|
91
|
+
title: ( localize2(4241, 'Quick Chat')),
|
|
92
|
+
precondition: ChatContextKeys.enabled,
|
|
90
93
|
icon: Codicon.commentDiscussion,
|
|
91
94
|
f1: false,
|
|
92
95
|
category: CHAT_CATEGORY,
|
|
93
96
|
keybinding: {
|
|
94
|
-
weight:
|
|
95
|
-
primary:
|
|
97
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
98
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyMod.Alt | KeyCode.KeyL,
|
|
96
99
|
},
|
|
97
100
|
menu: {
|
|
98
101
|
id: MenuId.ChatCommandCenter,
|
|
99
|
-
group: '
|
|
102
|
+
group: 'e_quickChat',
|
|
100
103
|
order: 5
|
|
101
104
|
},
|
|
102
105
|
metadata: {
|
|
103
|
-
description: ( localize(
|
|
106
|
+
description: ( localize(4242, 'Toggle the quick chat')),
|
|
104
107
|
args: [{
|
|
105
108
|
name: 'args',
|
|
106
109
|
schema: {
|
|
@@ -110,18 +113,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
110
113
|
required: ['query'],
|
|
111
114
|
properties: {
|
|
112
115
|
query: {
|
|
113
|
-
description: ( localize(
|
|
116
|
+
description: ( localize(4243, "The query to open the quick chat with")),
|
|
114
117
|
type: 'string'
|
|
115
118
|
},
|
|
116
119
|
isPartialQuery: {
|
|
117
|
-
description: ( localize(
|
|
120
|
+
description: ( localize(4244, "Whether the query is partial; it will wait for more user input")),
|
|
118
121
|
type: 'boolean'
|
|
119
122
|
}
|
|
120
123
|
},
|
|
121
124
|
},
|
|
122
125
|
{
|
|
123
126
|
type: 'string',
|
|
124
|
-
description: ( localize(
|
|
127
|
+
description: ( localize(4243, "The query to open the quick chat with"))
|
|
125
128
|
}
|
|
126
129
|
]
|
|
127
130
|
}
|
|
@@ -141,7 +144,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
141
144
|
break;
|
|
142
145
|
}
|
|
143
146
|
if (options?.query) {
|
|
144
|
-
options.selection = (
|
|
147
|
+
options.selection = ( new Selection(1, options.query.length + 1, 1, options.query.length + 1));
|
|
145
148
|
}
|
|
146
149
|
quickChatService.toggle(options);
|
|
147
150
|
}
|
|
@@ -151,7 +154,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
151
154
|
super({
|
|
152
155
|
id: `workbench.action.openQuickChat`,
|
|
153
156
|
category: CHAT_CATEGORY,
|
|
154
|
-
title: ( localize2(
|
|
157
|
+
title: ( localize2(4245, "Open Quick Chat")),
|
|
155
158
|
f1: true
|
|
156
159
|
});
|
|
157
160
|
}
|
|
@@ -159,7 +162,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
159
162
|
const quickChatService = accessor.get(IQuickChatService);
|
|
160
163
|
quickChatService.toggle(query ? {
|
|
161
164
|
query,
|
|
162
|
-
selection: (
|
|
165
|
+
selection: ( new Selection(1, query.length + 1, 1, query.length + 1))
|
|
163
166
|
} : undefined);
|
|
164
167
|
}
|
|
165
168
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { IBulkEditService } from "vscode/vscode/vs/editor/browser/services/bulkEditService";
|
|
2
|
+
import { ICodeEditorService } from "vscode/vscode/vs/editor/browser/services/codeEditorService";
|
|
3
|
+
import { ILanguageService } from "vscode/vscode/vs/editor/common/languages/language";
|
|
4
|
+
import { ILanguageFeaturesService } from "vscode/vscode/vs/editor/common/services/languageFeatures";
|
|
5
|
+
import { IDialogService } from "vscode/vscode/vs/platform/dialogs/common/dialogs.service";
|
|
6
|
+
import { IFileService } from "vscode/vscode/vs/platform/files/common/files.service";
|
|
7
|
+
import { ILogService } from "vscode/vscode/vs/platform/log/common/log.service";
|
|
8
|
+
import { IProgressService } from "vscode/vscode/vs/platform/progress/common/progress.service";
|
|
9
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
10
|
+
import { ITextFileService } from "vscode/vscode/vs/workbench/services/textfile/common/textfiles.service";
|
|
11
|
+
import { IChatService } from "vscode/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
12
|
+
import { ICodeBlockActionContext } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/chat/browser/codeBlockPart";
|
|
13
|
+
export declare class InsertCodeBlockOperation {
|
|
14
|
+
private readonly editorService;
|
|
15
|
+
private readonly textFileService;
|
|
16
|
+
private readonly bulkEditService;
|
|
17
|
+
private readonly codeEditorService;
|
|
18
|
+
private readonly chatService;
|
|
19
|
+
private readonly languageService;
|
|
20
|
+
private readonly dialogService;
|
|
21
|
+
constructor(editorService: IEditorService, textFileService: ITextFileService, bulkEditService: IBulkEditService, codeEditorService: ICodeEditorService, chatService: IChatService, languageService: ILanguageService, dialogService: IDialogService);
|
|
22
|
+
run(context: ICodeBlockActionContext): Promise<void>;
|
|
23
|
+
private handleNotebookEditor;
|
|
24
|
+
private handleTextEditor;
|
|
25
|
+
private notify;
|
|
26
|
+
}
|
|
27
|
+
export declare class ApplyCodeBlockOperation {
|
|
28
|
+
private readonly editorService;
|
|
29
|
+
private readonly textFileService;
|
|
30
|
+
private readonly bulkEditService;
|
|
31
|
+
private readonly codeEditorService;
|
|
32
|
+
private readonly chatService;
|
|
33
|
+
private readonly languageFeaturesService;
|
|
34
|
+
private readonly progressService;
|
|
35
|
+
private readonly languageService;
|
|
36
|
+
private readonly fileService;
|
|
37
|
+
private readonly dialogService;
|
|
38
|
+
private readonly logService;
|
|
39
|
+
private inlineChatPreview;
|
|
40
|
+
constructor(editorService: IEditorService, textFileService: ITextFileService, bulkEditService: IBulkEditService, codeEditorService: ICodeEditorService, chatService: IChatService, languageFeaturesService: ILanguageFeaturesService, progressService: IProgressService, languageService: ILanguageService, fileService: IFileService, dialogService: IDialogService, logService: ILogService);
|
|
41
|
+
run(context: ICodeBlockActionContext): Promise<void>;
|
|
42
|
+
private handleNotebookEditor;
|
|
43
|
+
private handleTextEditor;
|
|
44
|
+
private computeEdits;
|
|
45
|
+
private applyWithInlinePreview;
|
|
46
|
+
private tryToRevealCodeBlock;
|
|
47
|
+
private notify;
|
|
48
|
+
}
|
|
49
|
+
export declare function computeIndentation(line: string, tabSize: number): {
|
|
50
|
+
level: number;
|
|
51
|
+
length: number;
|
|
52
|
+
};
|