✨ feat(vscode): 会话 tab 可交接对话给同事
This commit is contained in:
1 parent
5ee8226167
commit
77037924ef
20 files changed
+938
-26
No files matched your search
@@ -15,6 +15,8 @@ export interface ManagedSession {
|
||||
name: string
|
||||
profilePath?: string
|
||||
createdAt: number
|
||||
handedOffTo?: string
|
||||
handedOffAt?: number
|
||||
}
|
||||
|
||||
export interface ManagedSessionsData {
|
||||
@@ -46,7 +48,9 @@ export async function readManagedSessions(workspaceRoot: string): Promise<Manage
|
||||
const name = typeof s?.name === 'string' ? s.name : ''
|
||||
const profilePath = typeof s?.profilePath === 'string' ? s.profilePath : undefined
|
||||
const createdAt = typeof s?.createdAt === 'number' ? s.createdAt : 0
|
||||
return { id, name, profilePath, createdAt }
|
||||
const handedOffTo = typeof s?.handedOffTo === 'string' && s.handedOffTo.length > 0 ? s.handedOffTo : undefined
|
||||
const handedOffAt = typeof s?.handedOffAt === 'number' ? s.handedOffAt : undefined
|
||||
return { id, name, profilePath, createdAt, handedOffTo, handedOffAt }
|
||||
})
|
||||
.filter(s => s.id !== '')
|
||||
: []
|
||||
|
||||
Reference in new issue
Block a user