Skip to content

Commit dd06f75

Browse files
committed
Remove deprecated commands from Copilot integration
Signed-off-by: worksofliam <[email protected]>
1 parent 29cc2b0 commit dd06f75

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

src/aiProviders/copilot/contributes.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
{
1212
"name": "build",
1313
"description": "Build an SQL statement"
14-
},
15-
{
16-
"name": "activity",
17-
"description": "Summarize the activity on the system"
18-
},
19-
{
20-
"name": "set-schema",
21-
"description": "Set the current schema"
2214
}
2315
]
2416
}

src/aiProviders/copilot/index.ts

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -57,45 +57,8 @@ export function activateChat(context: vscode.ExtensionContext) {
5757
stream: vscode.ChatResponseStream,
5858
token: vscode.CancellationToken
5959
): Promise<IDB2ChatResult> => {
60-
const copilotFamily = request.model.family;
61-
6260
if (canTalkToDb()) {
6361
switch (request.command) {
64-
// case `activity`: //TODO: remove
65-
// stream.progress(`Grabbing Information about IBM i system`);
66-
// const data = await getSystemStatus();
67-
// console.log(
68-
// `summarize the following data in a readable paragraph: ${data}`
69-
// );
70-
// messages = [
71-
// vscode.LanguageModelChatMessage.User(
72-
// `You are a an IBM i savant speciallizing in database features in Db2 for i. Please provide a summary of the current IBM i system state based on the developer requirement.`
73-
// ),
74-
// vscode.LanguageModelChatMessage.User(
75-
// `Here is the current IBM i state: ${data}`
76-
// ),
77-
// vscode.LanguageModelChatMessage.User(request.prompt),
78-
// ];
79-
80-
// await copilotRequest(copilotFamily, messages, {}, token, stream);
81-
82-
// return { metadata: { command: "activity" } };
83-
84-
// case `set-schema`:
85-
// stream.progress(`Setting Current Schema for SQL Job`);
86-
// const newSchema = request.prompt.split(" ")[0];
87-
// if (newSchema) {
88-
// const curJob = JobManager.getSelection();
89-
// if (curJob) {
90-
// const result = await curJob.job.setCurrentSchema(newSchema);
91-
// if (result) {
92-
// stream.progress(`Set Current Schema: ${newSchema}✅`);
93-
// usingSchema = newSchema;
94-
// }
95-
// }
96-
// return;
97-
// }
98-
9962
default:
10063
stream.progress(`Building response...`);
10164

0 commit comments

Comments
 (0)