Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/extension/intents/node/allIntents.ts
13399 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
7
import { SyncDescriptor } from '../../../util/vs/platform/instantiation/common/descriptors';
8
import { InlineChatIntent } from '../../inlineChat2/node/inlineChatIntent';
9
import { IntentRegistry } from '../../prompt/node/intentRegistry';
10
import { AgentIntent } from './agentIntent';
11
import { AskAgentIntent } from './askAgentIntent';
12
import { ChronicleIntent } from './chronicleIntent';
13
import { EditCodeIntent } from './editCodeIntent';
14
import { ExplainIntent } from './explainIntent';
15
import { FixIntent } from './fixIntent';
16
import { GenerateCodeIntent } from './generateCodeIntent';
17
import { NewWorkspaceIntent } from './newIntent';
18
import { NewNotebookIntent } from './newNotebookIntent.contribution';
19
import { NotebookEditorIntent } from './notebookEditorIntent';
20
import { ReviewIntent } from './reviewIntent';
21
import { SearchIntent } from './searchIntent';
22
import { SearchKeywordsIntent } from './searchKeywordsIntent';
23
import { SearchPanelIntent } from './searchPanelIntent';
24
import { SetupTestsIntent } from './setupTests';
25
import { TerminalExplainIntent } from './terminalExplainIntent';
26
import { TerminalIntent } from './terminalIntent';
27
import { TestsIntent } from './testIntent/testIntent';
28
import { UnknownIntent } from './unknownIntent';
29
import { VscodeIntent } from './vscodeIntent';
30
31
IntentRegistry.setIntents([
32
new SyncDescriptor(EditCodeIntent),
33
new SyncDescriptor(AgentIntent),
34
new SyncDescriptor(SearchIntent),
35
new SyncDescriptor(TestsIntent),
36
new SyncDescriptor(FixIntent),
37
new SyncDescriptor(ExplainIntent),
38
new SyncDescriptor(ReviewIntent),
39
new SyncDescriptor(TerminalIntent),
40
new SyncDescriptor(TerminalExplainIntent),
41
new SyncDescriptor(UnknownIntent),
42
new SyncDescriptor(GenerateCodeIntent),
43
new SyncDescriptor(NewNotebookIntent),
44
new SyncDescriptor(NewWorkspaceIntent),
45
new SyncDescriptor(VscodeIntent),
46
new SyncDescriptor(SetupTestsIntent),
47
new SyncDescriptor(SearchPanelIntent),
48
new SyncDescriptor(SearchKeywordsIntent),
49
new SyncDescriptor(AskAgentIntent),
50
new SyncDescriptor(NotebookEditorIntent),
51
new SyncDescriptor(InlineChatIntent),
52
new SyncDescriptor(ChronicleIntent),
53
]);
54
55