@codingame/monaco-vscode-chat-service-override 3.2.3 → 4.1.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/chat.js +16 -14
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.js +16 -0
- package/external/tslib/tslib.es6.js +0 -11
- package/external/vscode-marked/lib/marked.esm.js +0 -2200
- package/override/vs/platform/dialogs/common/dialogs.js +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +0 -115
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +0 -501
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +0 -82
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +0 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +0 -110
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +0 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +0 -271
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +0 -299
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +0 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContributionServiceImpl.js +0 -179
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +0 -87
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +0 -271
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +0 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +0 -174
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatHistoryVariables.js +0 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +0 -580
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +0 -36
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +0 -601
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +0 -43
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +0 -41
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +0 -814
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +0 -72
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingServiceImpl.js +0 -236
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +0 -223
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChatServiceImpl.js +0 -33
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { InlineChatController } from 'vscode/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
2
|
-
import { CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_RESPONSE_FOCUSED } from 'vscode/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
3
|
-
import { IAccessibleViewService } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleView';
|
|
4
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
6
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
|
-
import { AccessibleViewAction } from 'vscode/vscode/vs/workbench/contrib/accessibility/browser/accessibleViewActions';
|
|
8
|
-
|
|
9
|
-
class InlineChatAccessibleViewContribution extends Disposable {
|
|
10
|
-
constructor() {
|
|
11
|
-
super();
|
|
12
|
-
this._register(AccessibleViewAction.addImplementation(100, 'inlineChat', accessor => {
|
|
13
|
-
const accessibleViewService = accessor.get(IAccessibleViewService);
|
|
14
|
-
const codeEditorService = accessor.get(ICodeEditorService);
|
|
15
|
-
const editor = (codeEditorService.getActiveCodeEditor() || codeEditorService.getFocusedCodeEditor());
|
|
16
|
-
if (!editor) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
const controller = InlineChatController.get(editor);
|
|
20
|
-
if (!controller) {
|
|
21
|
-
return false;
|
|
22
|
-
}
|
|
23
|
-
const responseContent = controller?.getMessage();
|
|
24
|
-
if (!responseContent) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
accessibleViewService.show({
|
|
28
|
-
id: "inlineChat" ,
|
|
29
|
-
verbositySettingKey: "accessibility.verbosity.inlineChat" ,
|
|
30
|
-
provideContent() { return responseContent; },
|
|
31
|
-
onClose() {
|
|
32
|
-
controller.focus();
|
|
33
|
-
},
|
|
34
|
-
options: { type: "view" }
|
|
35
|
-
});
|
|
36
|
-
return true;
|
|
37
|
-
}, ( ContextKeyExpr.or(CTX_INLINE_CHAT_FOCUSED, CTX_INLINE_CHAT_RESPONSE_FOCUSED))));
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { InlineChatAccessibleViewContribution };
|