mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-07 22:37:32 +01:00
enumerate all chat locations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -287,7 +287,11 @@ declare module 'vscode' {
|
||||
/**
|
||||
* Notebook inline chat
|
||||
*/
|
||||
Notebook = 3
|
||||
Notebook = 3,
|
||||
/**
|
||||
* Code editor inline chat
|
||||
*/
|
||||
Editor = 4
|
||||
}
|
||||
|
||||
export interface ChatRequest {
|
||||
|
||||
Reference in New Issue
Block a user