✨ feat(vscode): state JSON 新增 handoffAttachmentId/handoffFrom,Issue 透出 assignees

Claude-Session: https://claude.ai/code/session_011cEyL6k351U2BzX1Qmygph
This commit is contained in:
cruldra committed 2026-08-26 15:20:23 +08:00
1 parent 3ddafafe3d
commit 4b66d567b0
11 files changed
+60 -6

No files matched your search

+3
View File
@@ -13,6 +13,7 @@ import { randomBytes } from 'node:crypto'
import * as fs from 'node:fs'
import * as path from 'node:path'
import { env, TabInputTerminal, ThemeColor, Uri, ViewColumn, window, workspace } from 'vscode'
import { loginForToken } from '../auth/identity'
import { deleteToken, getToken } from '../auth/secrets'
import { detectRepo } from '../git/remote'
import {
@@ -882,12 +883,14 @@ export class KanbanWebviewPanel {
issues.map(i => [i.number, { source: i.source ?? 'gitea', externalId: i.externalId }] as const),
)
const ytSettings = getSettings(this.context)
const me = await loginForToken(host, token)
this.postMessage({
type: 'issues/update',
issues,
scope,
globalAutoReview: ytSettings.autoReview,
youtrackConfigured: ytSettings.youtrackBaseUrl.trim() !== '' && ytSettings.youtrackProjectShortName.trim() !== '',
me,
})
// Re-publish the cached git state so a slow webview boot (or a
// refresh after git events already fired) still picks up the latest