enumerate all chat locations

This commit is contained in:
Johannes
2024-03-15 16:09:23 +01:00
parent 0ac95cc1b7
commit 79a433e01e
4 changed files with 12 additions and 6 deletions
@@ -2626,6 +2626,7 @@ export namespace ChatLocation {
case ChatAgentLocation.Notebook: return types.ChatLocation.Notebook;
case ChatAgentLocation.Terminal: return types.ChatLocation.Terminal;
case ChatAgentLocation.Panel: return types.ChatLocation.Panel;
case ChatAgentLocation.Editor: return types.ChatLocation.Editor;
}
}
}
+2 -1
View File
@@ -4323,7 +4323,8 @@ export class ChatResponseTurn implements vscode.ChatResponseTurn {
export enum ChatLocation {
Panel = 1,
Terminal = 2,
Notebook = 3
Notebook = 3,
Editor = 4,
}
export class LanguageModelChatSystemMessage {
@@ -28,10 +28,10 @@ export interface IChatAgentHistoryEntry {
}
export enum ChatAgentLocation {
Panel = 1,
Terminal = 2,
Notebook = 3,
// Editor = 4
Panel = 'panel',
Terminal = 'terminal',
Notebook = 'notebook',
Editor = 'editor'
}
export namespace ChatAgentLocation {
+5 -1
View File
@@ -287,7 +287,11 @@ declare module 'vscode' {
/**
* Notebook inline chat
*/
Notebook = 3
Notebook = 3,
/**
* Code editor inline chat
*/
Editor = 4
}
export interface ChatRequest {