🐛 fix(vscode): 可靠捕获并补回审查会话关联
This commit is contained in:
1 parent
1bb0850fa8
commit
a34d7d3f4d
7 files changed
+1054
-273
No files matched your search
@@ -1097,6 +1097,10 @@ export class KanbanWebviewPanel {
|
||||
loadIssues({ host, token, owner, repo, workspaceRoot, scope }),
|
||||
this.loadYouTrackSafe(),
|
||||
])
|
||||
this.issueRefs = new Map(
|
||||
[...giteaIssues, ...youtrackList].map(i => [i.number, { source: i.source ?? 'gitea', externalId: i.externalId }] as const),
|
||||
)
|
||||
await sessions.recoverOpenReviewSessions(this, [...giteaIssues, ...youtrackList].map(i => i.number))
|
||||
// 本机记录(会话 id / worktree 等)叠加在共享状态之上,标出本机没有
|
||||
// 会话文件的会话 id,再补 live terminal 态。
|
||||
const issues = this.withLiveTerminalTabState(
|
||||
@@ -1104,9 +1108,6 @@ export class KanbanWebviewPanel {
|
||||
overlayLocalIssueState(this.context, [...giteaIssues, ...youtrackList], workspaceRoot),
|
||||
),
|
||||
)
|
||||
this.issueRefs = new Map(
|
||||
issues.map(i => [i.number, { source: i.source ?? 'gitea', externalId: i.externalId }] as const),
|
||||
)
|
||||
this.me = me
|
||||
this.issueOwners = new Map(
|
||||
issues.map(i => [i.number, { poster: i.poster, assignees: i.assignees }] as const),
|
||||
@@ -1350,6 +1351,7 @@ export class KanbanWebviewPanel {
|
||||
}
|
||||
|
||||
private dispose(): void {
|
||||
sessions.stopReviewSessionCaptures(this)
|
||||
KanbanWebviewPanel.current = undefined
|
||||
webhookCoordinator.setActivePanel(undefined)
|
||||
this.gitStateDisposable?.dispose()
|
||||
|
||||
Reference in new issue
Block a user