✨ feat(vscode): 历史会话可换 profile 恢复
This commit is contained in:
@@ -22,7 +22,7 @@ export interface UseManagedSessionsResult {
|
||||
managedSessions: ManagedSessionsData
|
||||
createManagedSession: (profilePath: string, name?: string, prompt?: string) => void
|
||||
renameManagedSession: (id: string, name: string) => void
|
||||
resumeManagedSession: (id: string) => void
|
||||
resumeManagedSession: (id: string, profilePath?: string) => void
|
||||
deleteManagedSession: (id: string) => void
|
||||
closeManagedSessionTab: (id: string) => void
|
||||
listImportableNamedSessions: () => void
|
||||
@@ -57,8 +57,8 @@ export function useManagedSessions(): UseManagedSessionsResult {
|
||||
postMessage({ type: 'managed-sessions/rename', sessionId: id, name })
|
||||
}, [])
|
||||
|
||||
const resumeManagedSession = useCallback((id: string): void => {
|
||||
postMessage({ type: 'managed-sessions/resume', sessionId: id })
|
||||
const resumeManagedSession = useCallback((id: string, profilePath?: string): void => {
|
||||
postMessage({ type: 'managed-sessions/resume', sessionId: id, profilePath })
|
||||
}, [])
|
||||
|
||||
const deleteManagedSession = useCallback((id: string): void => {
|
||||
|
||||
Reference in New Issue
Block a user