🎨 style(vscode): eslint 自动修复格式与排序

Claude-Session: https://claude.ai/code/session_01HTMgwaE3woqM5yvsHiuSAa
This commit is contained in:
cruldra committed 2026-08-31 22:30:42 +08:00
1 parent df35bcfd49
commit 8c22a29ce5
41 files changed
+248 -167

No files matched your search

+1 -1
View File
@@ -2,13 +2,13 @@ import type { KanbanWebviewPanel } from '../KanbanPanel'
import { promises as fsp } from 'node:fs'
import { window, workspace } from 'vscode'
import { buildCcCommand } from '../../cc/ccCommand'
import { resolveProfilePath } from '../../cc/profiles'
import { pollForNewSession, projectsDirFor } from '../../cc/sessionWatcher'
import { logger } from '../../logging/logger'
import { listImportableNamedSessions } from '../../sessions/importableNamedSessions'
import { decideManagedResumeProfile } from '../../sessions/managedResumeProfile'
import { readManagedSessions, writeManagedSessions } from '../../sessions/managedStore'
import { inferProfilePathForSession } from '../../sessions/sessionProfileInference'
import { resolveProfilePath } from '../../cc/profiles'
import { resolveTerminalLocation } from './terminals'
/** 默认会话名:有 prompt 取前 20 字符,否则用短 id(前 8 位)。 */
+13 -7
View File
@@ -8,8 +8,8 @@
*/
import type { IssueColumn } from '../../gitea/types'
import type { KanbanWebviewPanel } from '../KanbanPanel'
import type { YouTrackAuth } from '../../youtrack/api'
import type { KanbanWebviewPanel } from '../KanbanPanel'
import { ThemeIcon, window, workspace } from 'vscode'
import { getYouTrackToken } from '../../auth/secrets'
import { logger } from '../../logging/logger'
@@ -24,8 +24,10 @@ function toast(panel: KanbanWebviewPanel, level: 'info' | 'success' | 'error', m
panel.postMessage({ type: 'toast/show', id: makeNonce(), level, message, dismissOnTimer: 6000 })
}
/** Resolve {baseUrl, token} from settings + SecretStorage, or null if YouTrack
* isn't fully configured. */
/**
* Resolve {baseUrl, token} from settings + SecretStorage, or null if YouTrack
* isn't fully configured.
*/
async function resolveAuth(panel: KanbanWebviewPanel): Promise<YouTrackAuth | null> {
const baseUrl = getSettings(panel.context).youtrackBaseUrl.trim()
if (!baseUrl)
@@ -61,8 +63,10 @@ export async function handleYouTrackColumnChange(panel: KanbanWebviewPanel, exte
await panel.loadAndPush()
}
/** Resolve the issue in YouTrack. Uses the configured close command, else
* auto-detects the project's `isResolved` state value. */
/**
* Resolve the issue in YouTrack. Uses the configured close command, else
* auto-detects the project's `isResolved` state value.
*/
async function closeYouTrackIssue(panel: KanbanWebviewPanel, auth: YouTrackAuth, externalId: string): Promise<void> {
const configured = getSettings(panel.context).youtrackCloseCommand.trim()
const command = configured || (await resolvedStateCommand(auth, externalId))
@@ -74,8 +78,10 @@ async function closeYouTrackIssue(panel: KanbanWebviewPanel, auth: YouTrackAuth,
await applyCommand(auth, externalId, command)
}
/** Populate the settings project dropdown from the in-form base URL + token
* (lets the user pick a project before saving). */
/**
* Populate the settings project dropdown from the in-form base URL + token
* (lets the user pick a project before saving).
*/
export async function handleListProjects(panel: KanbanWebviewPanel, baseUrl: string, token: string): Promise<void> {
const trimmedBase = baseUrl.trim()
const trimmedToken = token.trim()