diff --git a/.agents/notes/implemented/testing/2026-11-08-viva-go-test-timing.md b/.agents/notes/implemented/testing/2026-11-08-viva-go-test-timing.md index 3b4d3561b..bca61cdc5 100644 --- a/.agents/notes/implemented/testing/2026-11-08-viva-go-test-timing.md +++ b/.agents/notes/implemented/testing/2026-11-08-viva-go-test-timing.md @@ -30,6 +30,13 @@ Viva 无头驱动的 `Pump()` 只消费已经请求的重绘,不会因测试 那会掩盖生产代码漏通知的问题,也不能用延时等待后台通知替测试完成刷新。 终端菜单用例先消费输出的待绘制帧,再点击终端侧栏按钮;其进程仍由测试清理流程关闭。 +### 测试夹具只依赖被测边界 + +- 默认安装目录发现测试使用已有注册表替身,排除开发机安装;注册表优先级由专门用例验证(#2431)。不得修改开发机注册表来使测试通过。 +- 跨 Core 边界的 Windows 可执行路径与运行时目录按 `filepath.Clean` 后的路径比较,命令参数仍严格按顺序比较。失败诊断逐字段输出,不转储含完整环境的启动计划(#2432)。 +- 项目树展开上限测试保留 514 个目录与 512 个展开上限;根列表及未知路径由真实 Core 读取,已知子目录由可控夹具返回固定内容。验证全部展开目录已加载、各自文件存在、读取批次不超过 64,未展开目录未被请求。真实小树的展开、折叠和目录读取继续由相邻集成测试覆盖。不要让上限测试依赖 512 次原生 Git/ignore 查询能在通用八秒监听期限内完成,也不通过加长期限掩盖夹具成本(#2433)。 +- 同插件运行聚合后,通过执行树里的会话节点切换控制台,并核对实际选中的会话与独立样本;不要沿用聚合前的顶部会话标签名来寻找控件。重新打开后的键盘展开与持久化断言继续保留(#2434)。 + ## 考虑过的备选方案 - 将整包耗时平均分给测试:不能反映真实慢用例,也无法区分包编译和运行时间。 diff --git a/desktop/internal/i18n/shared.generated.go b/desktop/internal/i18n/shared.generated.go index aa1acae66..a0da2545e 100644 --- a/desktop/internal/i18n/shared.generated.go +++ b/desktop/internal/i18n/shared.generated.go @@ -3538,15 +3538,15 @@ var sharedCatalogs = map[string]map[string]string{ "native.arg1HoldsTheMetadataOfSeveralVersionControlSystemsChooseTheOneThatManagesIt": "{arg1} holds the metadata of several version control systems. Choose the one that manages it.", "native.askOnNextLaunch": "Ask on next launch", "native.authenticationFailedLitheCannotAskForCredentialsYetSignInOnceWithTheCommandLineClientSoItStoresThemThenTryAgain": "Authentication failed. Lithe cannot ask for credentials yet: sign in once with the command-line client so it stores them, then try again.", - "native.available": "Available", - "native.baseRevision": "Base revision", - "native.basicInformation": "Basic Information", - "native.branch": "Branch", - "native.branch.variant3": "Branch: {arg1}", - "native.breakOnFieldAccess": "Break on Field Access…", - "native.build": "Build", - "native.buildSystem": "Build System", - "native.changes": "Changes", + "native.available": "Available", + "native.baseRevision": "Base revision", + "native.basicInformation": "Basic Information", + "native.branch": "Branch", + "native.branch.variant3": "Branch: {arg1}", + "native.breakOnFieldAccess": "Break on Field Access…", + "native.build": "Build", + "native.buildSystem": "Build System", + "native.changes": "Changes", "native.checkedAgainEveryTimeLitheLoadsThePlugin": "Checked again every time Lithe loads the plugin.", "native.checkoutAndRebase": "Checkout and Rebase", "native.checkoutAndRebaseBranch": "Checkout and rebase branch?", @@ -3887,23 +3887,23 @@ var sharedCatalogs = map[string]map[string]string{ "native.squashCommits.variant2": "Squash Commits…", "native.stageAllAndCommitUseTheCurrentChangeList": "Stage All and Commit use the current ChangeList.", "native.staleRecord": "Stale record", - "native.startALanguageServerWhenYouOpenFilesOfItsLanguage": "Start a language server when you open files of its language", - "native.startsNoPrograms": "Starts no programs.", - "native.stash": "Stash", - "native.status": "Status", - "native.stopAllServers": "Stop All Servers", - "native.stopRun.variant2": "Stop run", - "native.stopTrackingBranch": "Stop Tracking Branch", - "native.stoppingPrograms": "Stopping programs", - "native.storeTemporaryChangesInGitSStashList": "Store temporary changes in Git's stash list.", - "native.switched": "Switched", - "native.tasks": "Tasks", - "native.tasksD": "Tasks: {arg1}", - "native.test": "Test", - "native.testPath": "Test path", - "native.tests": "Tests", - "native.testsFailed": "Tests failed", - "native.testsPassed": "Tests passed", + "native.startALanguageServerWhenYouOpenFilesOfItsLanguage": "Start a language server when you open files of its language", + "native.startsNoPrograms": "Starts no programs.", + "native.stash": "Stash", + "native.status": "Status", + "native.stopAllServers": "Stop All Servers", + "native.stopRun.variant2": "Stop run", + "native.stopTrackingBranch": "Stop Tracking Branch", + "native.stoppingPrograms": "Stopping programs", + "native.storeTemporaryChangesInGitSStashList": "Store temporary changes in Git's stash list.", + "native.switched": "Switched", + "native.tasks": "Tasks", + "native.tasksD": "Tasks: {arg1}", + "native.test": "Test", + "native.testPath": "Test path", + "native.tests": "Tests", + "native.testsFailed": "Tests failed", + "native.testsPassed": "Tests passed", "native.theActionStoppedOnConflictedFilesResolveThemThenTryAgain": "The action stopped on conflicted files. Resolve them, then try again.", "native.theCheckoutDirectoryNoLongerExistsRepairMovedWorktreeMetadataOrPruneTheStaleGitRecord": "The checkout directory no longer exists. Repair moved worktree metadata or prune the stale Git record.", "native.theCurrentWorktreeCannotBeRemovedHere": "The current worktree cannot be removed here.", @@ -3938,120 +3938,120 @@ var sharedCatalogs = map[string]map[string]string{ "native.treeConflict": "Tree conflict", "native.tryABranchNameOrCheckoutPath": "Try a branch name or checkout path.", "native.typeAPathInsideTheProjectToCheckItAgainstTheRulesAboveAsYouEditThemWhetherLocalH0f31e93916": "Type a path inside the project to check it against the rules above as you edit them: whether local history records the file, and whether Git ignores it. Git ignore rules do not affect local history.", - "native.typeChanged": "Type changed", - "native.typeToSeeCommands": "Type / to see commands", - "native.typeToSeeOptions": "Type / to see options", - "native.uninstall": "Uninstall {arg1}?", - "native.unlockTheWorktreeBeforeRemovingIt": "Unlock the worktree before removing it.", - "native.unlockWorktree": "Unlock Worktree", - "native.unlocked": "Unlocked", - "native.unpinConfiguration": "Unpin configuration", - "native.unversioned": "Unversioned", - "native.unversionedFiles": "Unversioned Files", - "native.update": "Update", - "native.updateAvailable.variant2": "Update available", - "native.updateLog": "Update log", - "native.updateProject": "Update Project", - "native.updateTo.variant2": "Update to {arg1}", - "native.updated2": "Updated.", - "native.updatedToRevisionArg1": "Updated to revision {arg1}.", - "native.updates": "Updates", - "native.used.variant3": "Used", - "native.valid": "Valid", - "native.version": "Version", - "native.versionControl": "Version Control", - "native.versionIsInstalled": "Version {arg1} is installed.", - "native.versionsSource": "Versions & Source", - "native.view": "View", - "native.viewBreakpoints": "View Breakpoints", - "native.waitForTheRunningVersionControlActionToFinish": "Wait for the running version control action to finish.", - "native.whenQuittingLithe": "When quitting Lithe", + "native.typeChanged": "Type changed", + "native.typeToSeeCommands": "Type / to see commands", + "native.typeToSeeOptions": "Type / to see options", + "native.uninstall": "Uninstall {arg1}?", + "native.unlockTheWorktreeBeforeRemovingIt": "Unlock the worktree before removing it.", + "native.unlockWorktree": "Unlock Worktree", + "native.unlocked": "Unlocked", + "native.unpinConfiguration": "Unpin configuration", + "native.unversioned": "Unversioned", + "native.unversionedFiles": "Unversioned Files", + "native.update": "Update", + "native.updateAvailable.variant2": "Update available", + "native.updateLog": "Update log", + "native.updateProject": "Update Project", + "native.updateTo.variant2": "Update to {arg1}", + "native.updated2": "Updated.", + "native.updatedToRevisionArg1": "Updated to revision {arg1}.", + "native.updates": "Updates", + "native.used.variant3": "Used", + "native.valid": "Valid", + "native.version": "Version", + "native.versionControl": "Version Control", + "native.versionIsInstalled": "Version {arg1} is installed.", + "native.versionsSource": "Versions & Source", + "native.view": "View", + "native.viewBreakpoints": "View Breakpoints", + "native.waitForTheRunningVersionControlActionToFinish": "Wait for the running version control action to finish.", + "native.whenQuittingLithe": "When quitting Lithe", "native.whenTheLimitIsReachedTheOldestVersionsAreRemovedFirst": "When the limit is reached, the oldest versions are removed first.", "native.whereWouldYouLikeToOpenTheProject": "Where would you like to open the project ‘{arg1}’?", - "native.wholeWords": "Whole Words", - "native.wildcard": "Wildcard", - "native.wildcardIgnoreRules": "Wildcard ignore rules", - "native.workbenchBackground": "Workbench background", - "native.workingCopy": "Working copy", - "native.worktree": "Worktree", - "native.worktreesAreUnavailable": "Worktrees are unavailable", - "notifications.title": "Notifications", - "outline.collapseAll": "Collapse All", - "outline.expandAll": "Expand All", - "outline.noSymbolsFound": "No symbols found.", - "projectPicker.open": "Open", - "quickOpen.searching": "Searching...", - "run.run": "Run configuration", - "search.failed": "Search failed", - "search.search": "Search", - "settings.editor.autoSave": "Auto Save", - "settings.editor.autoSaveDescription": "Automatically save files when editing", - "settings.editor.fontFamily": "Font", - "settings.editor.fontLigatures": "Font Ligatures", - "settings.editor.fontSize": "Font Size", - "settings.editor.section": "Editor", - "settings.general.installing": "Installing...", - "settings.groups.appearance": "Appearance & Behavior", - "settings.groups.build": "Build, Execution, Deployment", - "settings.groups.languages": "Languages & Frameworks", - "settings.groups.tools": "Tools", - "settings.groups.versionControl": "Version Control", - "settings.mac.appearance": "Appearance", - "settings.mac.appearanceMode": "Appearance mode", - "settings.mac.autoSave": "Save changed files automatically", - "settings.mac.dark": "Dark", - "settings.mac.language": "Language", - "settings.mac.light": "Light", - "settings.mac.restoreDefaults": "Restore Defaults", - "settings.network.checkFailed": "The connection check failed.", - "settings.network.connectionSucceeded": "Connection succeeded in {arg1} ms.", - "settings.network.enterAddressAndPort": "Enter a server address and a port between 1 and 65535 first.", - "settings.network.proxyAnsweredWithHTTP": "The proxy answered with HTTP {arg1}.", - "settings.network.testConnection": "Test connection", - "settings.network.testing": "Testing…", - "settings.network.title": "Network", - "settings.resizePlugins": "Resize plugin list", - "settings.search": "Search settings", - "settings.tabs.general": "General", - "settings.tabs.git": "Git", - "settings.tabs.keyboard": "Keymap", - "settings.tabs.plugins": "Plugins", - "settings.terminal.defaultShell": "Default Shell", - "terminal.contextClose": "Close Terminal", - "terminal.detectingShells": "Detecting shells…", - "terminal.newTerminal": "New Terminal", - "titleProject.cloneRepository": "Clone Repository…", - "titleProject.newProject": "New Project…", - "titleProject.open": "Open…", - "titleProject.openProjects": "Open Projects", - "titleProject.recentProjects": "Recent Projects", - "ui.cancel": "Cancel", - "ui.clear": "Clear", - "ui.close": "Close", - "ui.delete": "Delete", - "ui.done": "Done", - "ui.refresh": "Refresh", - "ui.remove": "Remove", - "ui.retry": "Retry", - "ui.save": "Save", - "vcs.commitFiles.addToVcs": "Add to VCS", - "welcome.cloneRepository": "Clone Repository", - "welcome.newProject": "New Project", - "welcome.openProject": "Open Project", - "welcome.projects": "Projects", - "welcome.searchProjects": "Search projects", - "welcome.title": "Welcome to Lithe", - "window.close": "Close", - "window.maximize": "Maximize", - "window.minimize": "Minimize", - "window.restore": "Restore", - "workbench.build": "Build", - "workbench.commit": "Commit", - "workbench.currentFile": "Current File", - "workbench.project": "Project", - "workbench.run": "Run", - "workbench.search": "Search", - "workbench.terminal": "Terminal", + "native.wholeWords": "Whole Words", + "native.wildcard": "Wildcard", + "native.wildcardIgnoreRules": "Wildcard ignore rules", + "native.workbenchBackground": "Workbench background", + "native.workingCopy": "Working copy", + "native.worktree": "Worktree", + "native.worktreesAreUnavailable": "Worktrees are unavailable", + "notifications.title": "Notifications", + "outline.collapseAll": "Collapse All", + "outline.expandAll": "Expand All", + "outline.noSymbolsFound": "No symbols found.", + "projectPicker.open": "Open", + "quickOpen.searching": "Searching...", + "run.run": "Run configuration", + "search.failed": "Search failed", + "search.search": "Search", + "settings.editor.autoSave": "Auto Save", + "settings.editor.autoSaveDescription": "Automatically save files when editing", + "settings.editor.fontFamily": "Font", + "settings.editor.fontLigatures": "Font Ligatures", + "settings.editor.fontSize": "Font Size", + "settings.editor.section": "Editor", + "settings.general.installing": "Installing...", + "settings.groups.appearance": "Appearance & Behavior", + "settings.groups.build": "Build, Execution, Deployment", + "settings.groups.languages": "Languages & Frameworks", + "settings.groups.tools": "Tools", + "settings.groups.versionControl": "Version Control", + "settings.mac.appearance": "Appearance", + "settings.mac.appearanceMode": "Appearance mode", + "settings.mac.autoSave": "Save changed files automatically", + "settings.mac.dark": "Dark", + "settings.mac.language": "Language", + "settings.mac.light": "Light", + "settings.mac.restoreDefaults": "Restore Defaults", + "settings.network.checkFailed": "The connection check failed.", + "settings.network.connectionSucceeded": "Connection succeeded in {arg1} ms.", + "settings.network.enterAddressAndPort": "Enter a server address and a port between 1 and 65535 first.", + "settings.network.proxyAnsweredWithHTTP": "The proxy answered with HTTP {arg1}.", + "settings.network.testConnection": "Test connection", + "settings.network.testing": "Testing…", + "settings.network.title": "Network", + "settings.resizePlugins": "Resize plugin list", + "settings.search": "Search settings", + "settings.tabs.general": "General", + "settings.tabs.git": "Git", + "settings.tabs.keyboard": "Keymap", + "settings.tabs.plugins": "Plugins", + "settings.terminal.defaultShell": "Default Shell", + "terminal.contextClose": "Close Terminal", + "terminal.detectingShells": "Detecting shells…", + "terminal.newTerminal": "New Terminal", + "titleProject.cloneRepository": "Clone Repository…", + "titleProject.newProject": "New Project…", + "titleProject.open": "Open…", + "titleProject.openProjects": "Open Projects", + "titleProject.recentProjects": "Recent Projects", + "ui.cancel": "Cancel", + "ui.clear": "Clear", + "ui.close": "Close", + "ui.delete": "Delete", + "ui.done": "Done", + "ui.refresh": "Refresh", + "ui.remove": "Remove", + "ui.retry": "Retry", + "ui.save": "Save", + "vcs.commitFiles.addToVcs": "Add to VCS", + "welcome.cloneRepository": "Clone Repository", + "welcome.newProject": "New Project", + "welcome.openProject": "Open Project", + "welcome.projects": "Projects", + "welcome.searchProjects": "Search projects", + "welcome.title": "Welcome to Lithe", + "window.close": "Close", + "window.maximize": "Maximize", + "window.minimize": "Minimize", + "window.restore": "Restore", + "workbench.build": "Build", + "workbench.commit": "Commit", + "workbench.currentFile": "Current File", + "workbench.project": "Project", + "workbench.run": "Run", + "workbench.search": "Search", + "workbench.terminal": "Terminal", }, "zh-CN": { "ai.add": "添加", @@ -7589,15 +7589,15 @@ var sharedCatalogs = map[string]map[string]string{ "native.arg1HoldsTheMetadataOfSeveralVersionControlSystemsChooseTheOneThatManagesIt": "{arg1} 包含多个版本控制系统的元数据。请选择管理它的版本控制系统。", "native.askOnNextLaunch": "下次启动时询问", "native.authenticationFailedLitheCannotAskForCredentialsYetSignInOnceWithTheCommandLineClientSoItStoresThemThenTryAgain": "认证失败。Lithe 暂时无法询问凭据:请先用命令行客户端登录一次并保存凭据,然后重试。", - "native.available": "可用", - "native.baseRevision": "基线版本", - "native.basicInformation": "基本信息", - "native.branch": "分支", - "native.branch.variant3": "分支:{arg1}", - "native.breakOnFieldAccess": "字段被访问时中断…", - "native.build": "构建", - "native.buildSystem": "构建系统", - "native.changes": "更改", + "native.available": "可用", + "native.baseRevision": "基线版本", + "native.basicInformation": "基本信息", + "native.branch": "分支", + "native.branch.variant3": "分支:{arg1}", + "native.breakOnFieldAccess": "字段被访问时中断…", + "native.build": "构建", + "native.buildSystem": "构建系统", + "native.changes": "更改", "native.checkedAgainEveryTimeLitheLoadsThePlugin": "每次加载插件时都会重新校验。", "native.checkoutAndRebase": "检出并变基", "native.checkoutAndRebaseBranch": "检出并变基分支?", @@ -7938,23 +7938,23 @@ var sharedCatalogs = map[string]map[string]string{ "native.squashCommits.variant2": "合并所选提交…", "native.stageAllAndCommitUseTheCurrentChangeList": "全部暂存和提交仅使用当前更改列表。", "native.staleRecord": "陈旧记录", - "native.startALanguageServerWhenYouOpenFilesOfItsLanguage": "打开对应语言的文件时启动语言服务器", - "native.startsNoPrograms": "不启动任何程序。", - "native.stash": "贮藏", - "native.status": "状态", - "native.stopAllServers": "停止所有服务器", - "native.stopRun.variant2": "停止运行", - "native.stopTrackingBranch": "停止跟踪分支", - "native.stoppingPrograms": "结束程序", - "native.storeTemporaryChangesInGitSStashList": "将临时更改保存到 Git 的 Stash 列表中。", - "native.switched": "已切换", - "native.tasks": "任务", - "native.tasksD": "任务:{arg1}", - "native.test": "测试", - "native.testPath": "测试路径", - "native.tests": "测试", - "native.testsFailed": "测试失败", - "native.testsPassed": "测试通过", + "native.startALanguageServerWhenYouOpenFilesOfItsLanguage": "打开对应语言的文件时启动语言服务器", + "native.startsNoPrograms": "不启动任何程序。", + "native.stash": "贮藏", + "native.status": "状态", + "native.stopAllServers": "停止所有服务器", + "native.stopRun.variant2": "停止运行", + "native.stopTrackingBranch": "停止跟踪分支", + "native.stoppingPrograms": "结束程序", + "native.storeTemporaryChangesInGitSStashList": "将临时更改保存到 Git 的 Stash 列表中。", + "native.switched": "已切换", + "native.tasks": "任务", + "native.tasksD": "任务:{arg1}", + "native.test": "测试", + "native.testPath": "测试路径", + "native.tests": "测试", + "native.testsFailed": "测试失败", + "native.testsPassed": "测试通过", "native.theActionStoppedOnConflictedFilesResolveThemThenTryAgain": "操作因冲突文件而停止。请先解决冲突,然后重试。", "native.theCheckoutDirectoryNoLongerExistsRepairMovedWorktreeMetadataOrPruneTheStaleGitRecord": "检出目录已不存在。你可以修复移动后的工作树元数据,或清理失效的 Git 记录。", "native.theCurrentWorktreeCannotBeRemovedHere": "不能在这里删除当前工作树。", @@ -7989,119 +7989,119 @@ var sharedCatalogs = map[string]map[string]string{ "native.treeConflict": "树冲突", "native.tryABranchNameOrCheckoutPath": "请尝试输入分支名称或检出路径。", "native.typeAPathInsideTheProjectToCheckItAgainstTheRulesAboveAsYouEditThemWhetherLocalH0f31e93916": "输入项目内的路径,随着你编辑上面的规则实时检查:本地历史是否会记录这个文件,以及 Git 是否忽略它。Git 的忽略规则不影响本地历史。", - "native.typeChanged": "类型已更改", - "native.typeToSeeCommands": "输入 / 查看命令", - "native.typeToSeeOptions": "输入 / 查看选项", - "native.uninstall": "卸载 {arg1}?", - "native.unlockTheWorktreeBeforeRemovingIt": "请先解锁工作树再删除。", - "native.unlockWorktree": "解锁工作树", - "native.unlocked": "未锁定", - "native.unpinConfiguration": "取消置顶运行配置", - "native.unversioned": "未版本控制", - "native.unversionedFiles": "未版本控制的文件", - "native.update": "更新", - "native.updateAvailable.variant2": "有可用更新", - "native.updateLog": "更新日志", - "native.updateProject": "更新项目", - "native.updateTo.variant2": "更新到 {arg1}", - "native.updated2": "已更新。", - "native.updatedToRevisionArg1": "已更新到修订版本 {arg1}。", - "native.updates": "更新", - "native.used.variant3": "已用", - "native.valid": "有效", - "native.version": "版本", - "native.versionControl": "版本控制", - "native.versionIsInstalled": "已安装版本 {arg1}。", - "native.versionsSource": "版本与来源", - "native.view": "查看", - "native.viewBreakpoints": "查看断点", - "native.waitForTheRunningVersionControlActionToFinish": "请等待正在执行的版本控制操作完成。", - "native.whenQuittingLithe": "退出 Lithe 时", + "native.typeChanged": "类型已更改", + "native.typeToSeeCommands": "输入 / 查看命令", + "native.typeToSeeOptions": "输入 / 查看选项", + "native.uninstall": "卸载 {arg1}?", + "native.unlockTheWorktreeBeforeRemovingIt": "请先解锁工作树再删除。", + "native.unlockWorktree": "解锁工作树", + "native.unlocked": "未锁定", + "native.unpinConfiguration": "取消置顶运行配置", + "native.unversioned": "未版本控制", + "native.unversionedFiles": "未版本控制的文件", + "native.update": "更新", + "native.updateAvailable.variant2": "有可用更新", + "native.updateLog": "更新日志", + "native.updateProject": "更新项目", + "native.updateTo.variant2": "更新到 {arg1}", + "native.updated2": "已更新。", + "native.updatedToRevisionArg1": "已更新到修订版本 {arg1}。", + "native.updates": "更新", + "native.used.variant3": "已用", + "native.valid": "有效", + "native.version": "版本", + "native.versionControl": "版本控制", + "native.versionIsInstalled": "已安装版本 {arg1}。", + "native.versionsSource": "版本与来源", + "native.view": "查看", + "native.viewBreakpoints": "查看断点", + "native.waitForTheRunningVersionControlActionToFinish": "请等待正在执行的版本控制操作完成。", + "native.whenQuittingLithe": "退出 Lithe 时", "native.whenTheLimitIsReachedTheOldestVersionsAreRemovedFirst": "达到上限时,最早的版本会先被删除。", "native.whereWouldYouLikeToOpenTheProject": "你想在哪里打开项目“{arg1}”?", - "native.wholeWords": "全字匹配", - "native.wildcard": "通配符", - "native.wildcardIgnoreRules": "通配符忽略规则", - "native.workbenchBackground": "工作台背景", - "native.workingCopy": "工作副本", - "native.worktree": "工作树", - "native.worktreesAreUnavailable": "无法加载工作树", - "notifications.title": "通知", - "outline.collapseAll": "全部折叠", - "outline.expandAll": "全部展开", - "outline.noSymbolsFound": "未找到符号。", - "projectPicker.open": "打开", - "quickOpen.searching": "正在搜索...", - "run.run": "运行配置", - "search.failed": "搜索失败", - "search.search": "搜索", - "settings.editor.autoSave": "自动保存", - "settings.editor.autoSaveDescription": "编辑时自动保存文件", - "settings.editor.fontFamily": "字体", - "settings.editor.fontLigatures": "字体连字", - "settings.editor.fontSize": "字体大小", - "settings.editor.section": "编辑器", - "settings.general.installing": "正在安装...", - "settings.groups.appearance": "外观与行为", - "settings.groups.build": "构建、执行、部署", - "settings.groups.languages": "语言与框架", - "settings.groups.tools": "工具", - "settings.groups.versionControl": "版本控制", - "settings.mac.appearance": "外观", - "settings.mac.appearanceMode": "外观模式", - "settings.mac.autoSave": "自动保存已修改的文件", - "settings.mac.dark": "深色", - "settings.mac.language": "语言", - "settings.mac.light": "浅色", - "settings.mac.restoreDefaults": "恢复默认设置", - "settings.network.checkFailed": "连接检查失败。", - "settings.network.connectionSucceeded": "连接成功,耗时 {arg1} 毫秒。", - "settings.network.enterAddressAndPort": "请先填写服务器地址和 1 到 65535 之间的端口。", - "settings.network.proxyAnsweredWithHTTP": "代理返回了 HTTP {arg1}。", - "settings.network.testConnection": "测试连接", - "settings.network.testing": "测试中…", - "settings.network.title": "网络", - "settings.resizePlugins": "调整插件列表宽度", - "settings.search": "搜索设置", - "settings.tabs.general": "通用", - "settings.tabs.git": "Git", - "settings.tabs.keyboard": "快捷键", - "settings.tabs.plugins": "插件", - "settings.terminal.defaultShell": "默认 Shell", - "terminal.contextClose": "关闭终端", - "terminal.detectingShells": "正在检测 Shell…", - "terminal.newTerminal": "新建终端", - "titleProject.cloneRepository": "克隆仓库…", - "titleProject.newProject": "新建项目…", - "titleProject.open": "打开…", - "titleProject.openProjects": "打开的项目", - "titleProject.recentProjects": "最近项目", - "ui.cancel": "取消", - "ui.clear": "清空", - "ui.close": "关闭", - "ui.delete": "删除", - "ui.done": "完成", - "ui.refresh": "刷新", - "ui.remove": "移除", - "ui.retry": "重试", - "ui.save": "保存", - "vcs.commitFiles.addToVcs": "添加到 VCS", - "welcome.cloneRepository": "克隆仓库", - "welcome.newProject": "新建项目", - "welcome.openProject": "打开项目", - "welcome.projects": "项目", - "welcome.searchProjects": "搜索项目", - "welcome.title": "欢迎使用 Lithe", - "window.close": "关闭", - "window.maximize": "最大化", - "window.minimize": "最小化", - "window.restore": "还原", - "workbench.build": "构建", - "workbench.commit": "提交", - "workbench.currentFile": "当前文件", - "workbench.project": "项目", - "workbench.run": "运行", - "workbench.search": "搜索", - "workbench.terminal": "终端", + "native.wholeWords": "全字匹配", + "native.wildcard": "通配符", + "native.wildcardIgnoreRules": "通配符忽略规则", + "native.workbenchBackground": "工作台背景", + "native.workingCopy": "工作副本", + "native.worktree": "工作树", + "native.worktreesAreUnavailable": "无法加载工作树", + "notifications.title": "通知", + "outline.collapseAll": "全部折叠", + "outline.expandAll": "全部展开", + "outline.noSymbolsFound": "未找到符号。", + "projectPicker.open": "打开", + "quickOpen.searching": "正在搜索...", + "run.run": "运行配置", + "search.failed": "搜索失败", + "search.search": "搜索", + "settings.editor.autoSave": "自动保存", + "settings.editor.autoSaveDescription": "编辑时自动保存文件", + "settings.editor.fontFamily": "字体", + "settings.editor.fontLigatures": "字体连字", + "settings.editor.fontSize": "字体大小", + "settings.editor.section": "编辑器", + "settings.general.installing": "正在安装...", + "settings.groups.appearance": "外观与行为", + "settings.groups.build": "构建、执行、部署", + "settings.groups.languages": "语言与框架", + "settings.groups.tools": "工具", + "settings.groups.versionControl": "版本控制", + "settings.mac.appearance": "外观", + "settings.mac.appearanceMode": "外观模式", + "settings.mac.autoSave": "自动保存已修改的文件", + "settings.mac.dark": "深色", + "settings.mac.language": "语言", + "settings.mac.light": "浅色", + "settings.mac.restoreDefaults": "恢复默认设置", + "settings.network.checkFailed": "连接检查失败。", + "settings.network.connectionSucceeded": "连接成功,耗时 {arg1} 毫秒。", + "settings.network.enterAddressAndPort": "请先填写服务器地址和 1 到 65535 之间的端口。", + "settings.network.proxyAnsweredWithHTTP": "代理返回了 HTTP {arg1}。", + "settings.network.testConnection": "测试连接", + "settings.network.testing": "测试中…", + "settings.network.title": "网络", + "settings.resizePlugins": "调整插件列表宽度", + "settings.search": "搜索设置", + "settings.tabs.general": "通用", + "settings.tabs.git": "Git", + "settings.tabs.keyboard": "快捷键", + "settings.tabs.plugins": "插件", + "settings.terminal.defaultShell": "默认 Shell", + "terminal.contextClose": "关闭终端", + "terminal.detectingShells": "正在检测 Shell…", + "terminal.newTerminal": "新建终端", + "titleProject.cloneRepository": "克隆仓库…", + "titleProject.newProject": "新建项目…", + "titleProject.open": "打开…", + "titleProject.openProjects": "打开的项目", + "titleProject.recentProjects": "最近项目", + "ui.cancel": "取消", + "ui.clear": "清空", + "ui.close": "关闭", + "ui.delete": "删除", + "ui.done": "完成", + "ui.refresh": "刷新", + "ui.remove": "移除", + "ui.retry": "重试", + "ui.save": "保存", + "vcs.commitFiles.addToVcs": "添加到 VCS", + "welcome.cloneRepository": "克隆仓库", + "welcome.newProject": "新建项目", + "welcome.openProject": "打开项目", + "welcome.projects": "项目", + "welcome.searchProjects": "搜索项目", + "welcome.title": "欢迎使用 Lithe", + "window.close": "关闭", + "window.maximize": "最大化", + "window.minimize": "最小化", + "window.restore": "还原", + "workbench.build": "构建", + "workbench.commit": "提交", + "workbench.currentFile": "当前文件", + "workbench.project": "项目", + "workbench.run": "运行", + "workbench.search": "搜索", + "workbench.terminal": "终端", }, } diff --git a/desktop/internal/localshell/discovery_windows_test.go b/desktop/internal/localshell/discovery_windows_test.go index 1bb350939..ddab1abd5 100644 --- a/desktop/internal/localshell/discovery_windows_test.go +++ b/desktop/internal/localshell/discovery_windows_test.go @@ -98,6 +98,8 @@ func TestWindowsDefaultShellPrefersTheStorePowerShell(t *testing.T) { // TestWindowsShellDiscoveryFindsCygwin covers the setup program's default // roots beside the system drive, which PATH does not carry (issue #435). func TestWindowsShellDiscoveryFindsCygwin(t *testing.T) { + // This test covers default roots, independently of the machine's recorded install. + stubCygwinRegistry(t, nil) root := t.TempDir() path := filepath.Join(root, "cygwin64", "bin", "bash.exe") if err := os.MkdirAll(filepath.Dir(path), 0o700); err != nil { diff --git a/desktop/internal/workbench/debug_launch_test.go b/desktop/internal/workbench/debug_launch_test.go index 414c9c2f5..fb7931b00 100644 --- a/desktop/internal/workbench/debug_launch_test.go +++ b/desktop/internal/workbench/debug_launch_test.go @@ -139,8 +139,15 @@ func TestDebugRuntimeArgumentsComeFromTheToolDefinition(t *testing.T) { t.Fatal(err) } expected := []string{"-test.count=1", "-test.run=^TestDebugAdapterRunner$", entry} - if plan.Executable != executable || !reflect.DeepEqual(plan.Arguments, expected) || plan.Environment["FICTIONAL_VM_HOME"] != home { - t.Fatalf("tool definition launch = %+v, arguments want %v", plan, expected) + // Core may return slash-separated paths on Windows as well. + if filepath.Clean(plan.Executable) != filepath.Clean(executable) { + t.Fatalf("executable = %q, want %q", plan.Executable, executable) + } + if !reflect.DeepEqual(plan.Arguments, expected) { + t.Fatalf("arguments = %q, want %q", plan.Arguments, expected) + } + if got := plan.Environment["FICTIONAL_VM_HOME"]; filepath.Clean(got) != filepath.Clean(home) { + t.Fatalf("FICTIONAL_VM_HOME = %q, want %q", got, home) } manifests, discoveryErr := h.app.toolchainManifests(ctx) if len(manifests) == 0 || discoveryErr == nil { diff --git a/desktop/internal/workbench/filetree_actions_test.go b/desktop/internal/workbench/filetree_actions_test.go index 84fcb9b5e..b1bf47284 100644 --- a/desktop/internal/workbench/filetree_actions_test.go +++ b/desktop/internal/workbench/filetree_actions_test.go @@ -203,15 +203,58 @@ func TestProjectTreeExpandsAndCollapsesAll(t *testing.T) { } } +// expandLimitTreeKernel keeps the limit test independent of 512 native Git/ignore +// queries. The root still comes from Core; each fixture child has its known file. +// Small-tree expansion above covers real directory reads through the same queue. +type expandLimitTreeKernel struct { + *testKernel + mu sync.Mutex + fixtures map[string]core.DirectoryListing + requested map[string]bool + maxBatch int +} + +func (k *expandLimitTreeKernel) ListDirectories(ctx context.Context, root string, paths []string) ([]core.DirectoryListing, error) { + if err := ctx.Err(); err != nil { + return nil, err + } + k.mu.Lock() + k.maxBatch = max(k.maxBatch, len(paths)) + listings := make([]core.DirectoryListing, 0, len(paths)) + var native []string + for _, path := range paths { + listing, ok := k.fixtures[path] + if !ok { + native = append(native, path) + continue + } + k.requested[path] = true + listings = append(listings, listing) + } + k.mu.Unlock() + if len(native) != 0 { + actual, err := k.Client.ListDirectories(ctx, root, native) + if err != nil { + return nil, err + } + listings = append(listings, actual...) + } + return listings, nil +} + func TestProjectTreeExpandAllStopsAtItsLimit(t *testing.T) { root := t.TempDir() count := treeExpandAllLimit + 2 paths := make([]string, count) + fixtures := make(map[string]core.DirectoryListing, count) for i := range paths { - paths[i] = fmt.Sprintf("d%04d/f.txt", i) + folder := fmt.Sprintf("d%04d", i) + paths[i] = folder + "/f.txt" + fixtures[folder] = core.DirectoryListing{Path: folder, Children: []core.WorkspaceNode{{Path: paths[i], Name: "f.txt", Leaf: true}}} } writeTreeFiles(t, root, paths...) - h := newHarness(t, &testKernel{Client: core.NewClient()}) + kernel := &expandLimitTreeKernel{testKernel: &testKernel{Client: core.NewClient()}, fixtures: fixtures, requested: make(map[string]bool)} + h := newHarness(t, kernel) p := h.openTree(t, root) // Observe this action's notice before unrelated native watcher completions // can replace the single banner (Linux reaches its separate watch cap first). @@ -233,6 +276,25 @@ func TestProjectTreeExpandAllStopsAtItsLimit(t *testing.T) { t.Fatalf("Expand All opened %d folders, want %d", expanded, treeExpandAllLimit) } awaitDocumentState(t, h, func() bool { return treeIdle(p) }) + kernel.mu.Lock() + defer kernel.mu.Unlock() + if len(kernel.requested) != treeExpandAllLimit || kernel.maxBatch > treeListingBatch { + t.Fatalf("read %d folders, largest batch %d; want %d folders in batches of at most %d", len(kernel.requested), kernel.maxBatch, treeExpandAllLimit, treeListingBatch) + } + loadedExpanded := 0 + for _, child := range p.tree.root.children { + if child.expanded { + loadedExpanded++ + if !child.listed || child.loading || !kernel.requested[child.path] || p.tree.find(child.path+"/f.txt") == nil { + t.Fatalf("expanded folder %q did not finish loading its file", child.path) + } + } else if child.listed || child.loading || kernel.requested[child.path] { + t.Fatalf("closed folder %q was read past the expansion limit", child.path) + } + } + if len(p.tree.root.children) != count || loadedExpanded != treeExpandAllLimit { + t.Fatalf("final tree has %d folders, %d expanded; want %d folders, %d expanded", len(p.tree.root.children), loadedExpanded, count, treeExpandAllLimit) + } } // recordingTreeKernel records the folders each listing asks for. diff --git a/desktop/internal/workbench/run_panels_test.go b/desktop/internal/workbench/run_panels_test.go index a978a9529..f52ee0a8d 100644 --- a/desktop/internal/workbench/run_panels_test.go +++ b/desktop/internal/workbench/run_panels_test.go @@ -198,7 +198,7 @@ func TestRunPerformanceCollapseKeepsSummaryAndPersistsTheChoice(t *testing.T) { t.Fatalf("collapse preference was not saved: %+v, err=%v", savedCollapsed, err) } - // A second run tab shares the collapsed preference while keeping its own samples. + // Grouped executions share the collapsed preference while keeping their own samples. h.app.applyRunEvent(pluginservice.RunEvent{Type: pluginservice.RunStarted, RunID: "run-second", PluginID: "dev.lithe.test.output-links", Label: "Second run", Workspace: root}) h.settle() if len(p.build.runs) != 2 { @@ -214,8 +214,12 @@ func TestRunPerformanceCollapseKeepsSummaryAndPersistsTheChoice(t *testing.T) { if !h.shows(h.app.text.Run.Performance.CPU("70")) || !h.shows(h.app.text.Run.Performance.Memory("128")) { t.Fatal("second run does not show its own resource summary") } - h.clickNamed("Test run") + firstNode := h.pageHit(run.label + ", " + h.app.runStatusText(run)) + h.click(center(firstNode.Bounds)) h.settle() + if p.activeRun() != run { + t.Fatal("the execution tree did not select the first run") + } if !h.shows(h.app.text.Run.Performance.CPU("25")) || !h.shows(h.app.text.Run.Performance.Memory("96")) { t.Fatal("switching back did not preserve the first run's samples") } @@ -244,7 +248,7 @@ func TestRunPerformanceCollapseKeepsSummaryAndPersistsTheChoice(t *testing.T) { if reopenedCollapsedHit.Expanded { t.Fatalf("reopened run chart started expanded: %+v", reopenedCollapsedHit) } - reopened.clickNamed("Test run") + reopened.click(center(reopened.pageHit(reopenedRun.label + ", " + reopened.app.runStatusText(reopenedRun)).Bounds)) reopened.settle() for range 40 { if reopened.focusedName() == expand { diff --git a/shared/platform-feature-matrix/features/file-explorer.json b/shared/platform-feature-matrix/features/file-explorer.json index 5f750d0a1..48a0d8e17 100644 --- a/shared/platform-feature-matrix/features/file-explorer.json +++ b/shared/platform-feature-matrix/features/file-explorer.json @@ -46,7 +46,7 @@ ] }, "owner": "Workspace", - "verification": "项目树磁盘与 Git 目录查询使用独立有界 I/O 限时;运行 TestProjectTreeDirectoryReadsAllowNativeIO 和 TestProjectTreeDirectoryReadCancelsWhenProjectCloses(测试先等待初始根目录 listing 与递归 watch resync 空闲再注入受控阻塞请求,在 macOS `-race -count=50` 下验证关闭项目取消请求且旧结果不恢复项目,原生窗口仍待实机验收),验证超过纯计算限时仍可加载、关闭项目取消请求且旧结果不恢复项目。macOS 和 Windows 无头测试覆盖目录选择、展开、键盘、虚拟绘制、长文件名滚动、外部新增删除、空目录变化、超过 128 个目录、隐藏路径过滤、视口锚定、过期读取以及与搜索共享监听的关闭和重试;真实 Core 测试覆盖共享自然排序样例,以及插件声明的隐藏目录:任意层级、忽略 ASCII 大小写,被拒的清单不生效,清空后重新显示。运行 scripts/desktop/desktop-go.sh test -race ./internal/workbench -run 'TestProjectTree|TestProjectSearch|TestEverywhere' -count=3 和 scripts/desktop/desktop-go.sh test -race ./internal/core -run TestWorkspaceDirectory -count=3。完整文件树和原生窗口行为仍待验收。 标题栏按钮:运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestProjectTree(Locate|ExpandsAndCollapses|ExpandAll|Refresh)' -count=1 和 scripts/desktop/desktop-go.sh test ./internal/treelist -count=1;实机打开深层文件后折叠祖先,点击定位确认展开、选中并滚动到中间,键盘焦点在该行;在超过 512 个目录的项目中全部展开出现提示;删除并恢复项目根目录后点击刷新恢复树。 Unix 文件名里的反斜杠(2026-11-16,#2009,Lithe-core-rust #62):macOS 和 Linux 上 \\ 与 : 是文件名的一部分。Spring Boot 按 Windows 写法配置 logging.file.path: D:\\logs 后在项目里建出的 D:\\logs 目录,显示为根目录下的一个文件夹,展开后列出其中的文件,不再报 workspace.projectTree.rows 的“A project tree node is not in the folder above it”而让项目树为空;Windows 上 \\ 仍是分隔符,行为不变。运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run TestProjectTreeShowsUnixNamesWithBackslashes -count=1(Windows 上跳过);原生窗口验收待做。 插件声明的隐藏目录(2026-11-16,#1856,Lithe-core-rust #72):运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestPluginDeclaredFolders|TestHiddenFolders' -count=1 和 scripts/desktop/desktop-go.sh test ./internal/core -run TestWorkspaceVisibility -count=1;实机启用一个在 layout.hiddenDirectoryNames 声明目录的构建插件后,每个打开的项目标签页的项目树都不再显示这些目录、搜索也不再命中其中的文件,禁用或卸载插件后重新显示;原生窗口验收待做。 大同层目录回归:显式设置 LITHE_VISUAL_OUTPUT_DIR,并运行 scripts/desktop/desktop-go.sh test -tags vivahead,lithevisual ./internal/workbench -run '^TestVisualProjectTreeLargeDirectory$' -count=1 -timeout=120s;用真实临时 Git 仓库的 500 个同层忽略目录验证根目录不报不可用、普通源码目录可展开、文件打开后内容正确,并检查浅色中文及深色英文截图。改动前后使用相同场景和生产读取预算,分别链接旧、新 Core。Linux 无头验证不代表 macOS 或 Windows 原生验收,两端 verificationStatus 保持 pending。", + "verification": "项目树磁盘与 Git 目录查询使用独立有界 I/O 限时;运行 TestProjectTreeDirectoryReadsAllowNativeIO 和 TestProjectTreeDirectoryReadCancelsWhenProjectCloses(测试先等待初始根目录 listing 与递归 watch resync 空闲再注入受控阻塞请求,在 macOS `-race -count=50` 下验证关闭项目取消请求且旧结果不恢复项目,原生窗口仍待实机验收),验证超过纯计算限时仍可加载、关闭项目取消请求且旧结果不恢复项目。macOS 和 Windows 无头测试覆盖目录选择、展开、键盘、虚拟绘制、长文件名滚动、外部新增删除、空目录变化、超过 128 个目录、隐藏路径过滤、视口锚定、过期读取以及与搜索共享监听的关闭和重试;真实 Core 测试覆盖共享自然排序样例,以及插件声明的隐藏目录:任意层级、忽略 ASCII 大小写,被拒的清单不生效,清空后重新显示。运行 scripts/desktop/desktop-go.sh test -race ./internal/workbench -run 'TestProjectTree|TestProjectSearch|TestEverywhere' -count=3 和 scripts/desktop/desktop-go.sh test -race ./internal/core -run TestWorkspaceDirectory -count=3。完整文件树和原生窗口行为仍待验收。 标题栏按钮:运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestProjectTree(Locate|ExpandsAndCollapses|ExpandAll|Refresh)' -count=1 和 scripts/desktop/desktop-go.sh test ./internal/treelist -count=1;实机打开深层文件后折叠祖先,点击定位确认展开、选中并滚动到中间,键盘焦点在该行;在超过 512 个目录的项目中全部展开出现提示;删除并恢复项目根目录后点击刷新恢复树。 Unix 文件名里的反斜杠(2026-11-16,#2009,Lithe-core-rust #62):macOS 和 Linux 上 \\ 与 : 是文件名的一部分。Spring Boot 按 Windows 写法配置 logging.file.path: D:\\logs 后在项目里建出的 D:\\logs 目录,显示为根目录下的一个文件夹,展开后列出其中的文件,不再报 workspace.projectTree.rows 的“A project tree node is not in the folder above it”而让项目树为空;Windows 上 \\ 仍是分隔符,行为不变。运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run TestProjectTreeShowsUnixNamesWithBackslashes -count=1(Windows 上跳过);原生窗口验收待做。 插件声明的隐藏目录(2026-11-16,#1856,Lithe-core-rust #72):运行 scripts/desktop/desktop-go.sh test ./internal/workbench -run 'TestPluginDeclaredFolders|TestHiddenFolders' -count=1 和 scripts/desktop/desktop-go.sh test ./internal/core -run TestWorkspaceVisibility -count=1;实机启用一个在 layout.hiddenDirectoryNames 声明目录的构建插件后,每个打开的项目标签页的项目树都不再显示这些目录、搜索也不再命中其中的文件,禁用或卸载插件后重新显示;原生窗口验收待做。 大同层目录回归:显式设置 LITHE_VISUAL_OUTPUT_DIR,并运行 scripts/desktop/desktop-go.sh test -tags vivahead,lithevisual ./internal/workbench -run '^TestVisualProjectTreeLargeDirectory$' -count=1 -timeout=120s;用真实临时 Git 仓库的 500 个同层忽略目录验证根目录不报不可用、普通源码目录可展开、文件打开后内容正确,并检查浅色中文及深色英文截图。改动前后使用相同场景和生产读取预算,分别链接旧、新 Core。Linux 无头验证不代表 macOS 或 Windows 原生验收,两端 verificationStatus 保持 pending。 #2433:展开上限回归保留 514 个目录和 512 上限,根列表仍走真实 Core,已知子目录用固定读取夹具;核对每个展开目录已完成加载且包含对应文件、批次不超过 64、未展开目录不发子目录请求。相邻小树展开折叠继续覆盖真实 Core 读取;没有延长八秒等待或降低规模。", "notes": "Viva 接入 Core 按需列目录、单选、方向键及虚拟绘制;项目根节点(包括空项目)可显示和选择,树行尺寸与展开图标参照旧版,批量列目录失败只记录一次宿主错误;新增根节点和失败日志回归仅在 macOS 验证,Windows 待重跑。2026-11-14 起可见行、选择修正、视口顶端行和多选由 Core 计算(workspace.projectTree.rows、workspace.rowSelection.reduce,#1800),树的形状变化时才调用,缩放和重绘不调用;Viva 日志生成与使用门禁跟踪 #1802。macOS 和 Windows 用一个项目级递归监听,供项目树和搜索共用,事件经 Core 过滤,重读保持节点及视口锚点。Linux 暂用最多 128 个按需目录监听,超限提示。多选、批量移动、上下文菜单、完整旧版增量行为与平台差异仍需迁移,macOS 和 Windows 原生窗口、逐像素对照及大项目性能均待验收。 Project 标题栏有定位当前文件、刷新、全部展开、全部折叠四个按钮:定位逐级列出并展开祖先目录后选中、居中并聚焦目标行,路径不可见时放弃并记录 operation_rejected;刷新重读已展开目录,根目录读取失败时重新监听并读取;全部展开按广度优先最多打开 512 个目录,超出时提示;全部折叠保留根目录,被隐藏的选择移到其所在的顶层目录。项目树是 Viva 的 ui.Tree(只声明可见行,RowWidth 使行等宽于最长名称以横向滚动),行尺寸与文字色取自 desktop/internal/treelist,Git Log 改动文件共用。方向键只移动焦点环,选中行跟随点击、Enter 与箭头,待 Viva 提供 TreeState.RowID 后改为跟随焦点。 2026-11-16 起(#1856,Lithe-core-rust #72)Core 自身只隐藏 .git、.worktree、.worktrees、.DS_Store 和 .lithe;构建产物、缓存和 VCS 元数据目录由启用的插件声明(构建系统的 layout.hiddenDirectoryNames、VCS 提供者的目录标记),宿主读取插件语言时一并交给 Core(workspace.configureVisibility),名单变化后每个打开的标签页重读已展开的目录,排除目录图标也只认这份名单。宿主不再内置 target、build、out、node_modules、.idea、.venv、__pycache__ 等名称,没有对应插件的生态不再隐藏这些目录。 大同层忽略目录的按需查询由 Core prepare_parent 复用 tracked_directories 批量检查已跟踪内容,保留嵌套仓库保护、无法可靠批量回答时的逐目录回退和取消语义;不预扫整棵目录树,不改变索引排除与树可见性的区分(#2053,Lithe-core-rust #73)。", "legacy": { "revision": "5a54c41aa37a4e6e6b68918a4b05765b9dd07a36", diff --git a/shared/platform-feature-matrix/features/run-window-execution-tabs.json b/shared/platform-feature-matrix/features/run-window-execution-tabs.json index 6b94ccfce..b4cf0ff6c 100644 --- a/shared/platform-feature-matrix/features/run-window-execution-tabs.json +++ b/shared/platform-feature-matrix/features/run-window-execution-tabs.json @@ -5,7 +5,7 @@ "capability": "Run 窗口支持按插件/构建系统聚合执行标签并可拖拽分离与合并:同插件的多个会话聚合在同一个分组标签下并在左侧执行树列出,点击切换控制台;每条执行节点支持 > / v 折叠详情,支持从执行树拖到顶部标签栏分离为独立标签、拖回分组重新合并及标签排序;标签带状态图标、运行中监听端口徽标和关闭按钮,左侧竖排工具栏提供再次运行(绿)与停止(红),右侧是控制台及其自动换行、滚动到末尾、清空按钮", "owner": "Run", "notes": "Viva 共享实现。宿主构建任务、构建同步、运行配置和插件经 lithe/host/run/start 发起的运行都进入 Run 窗口。未分离的同插件/同构建系统会话自动聚合在同一个分组标签下(两个及以上会话时标签显示插件/构建系统名,单个会话时显示自身名称),记住每个分组上次查看的会话;用户可将左侧执行树中的会话拖到顶部标签栏分离为独立标签,或将独立标签拖回同插件标签/左侧树重新合并,也可在标签栏内拖拽排序或经右键菜单分离/合并。执行树支持滚动并带滚动条,每个会话节点默认折叠(运行中且存在活跃监听端口时默认展开),通过左侧 > / v 按钮展开或收起“进程已结束/构建结果”等详情与监听端口行。同名的已结束执行被新执行替换并保留分离状态,运行中的标签不可关闭,关闭当前标签后优先选中同组相邻会话或相邻标签。Build 窗口不再内嵌运行输出。控制台跟随最新输出,用户向上滚动后停止跟随,滚动到末尾按钮恢复。全部文案走 shared/i18n 的 desktop.run.*。", - "verification": "打开 Build 窗口依次执行两个同插件任务(如同步与构建任务),确认 Run 窗口标题为“运行”,同插件会话聚合在同一个分组标签下且左侧执行树列出全部会话;点击树中不同会话可切换右侧控制台;默认折叠详情显示 > 按钮,点击展开显示退出码/构建结果并切换为 v 按钮;将树中某会话拖到顶部标签栏分离为独立标签,再拖回同插件标签重新合并;运行无分组任务确认各自独立成标签,标签图标分别为成功和失败,运行中标签无关闭按钮、结束后可关闭并选中相邻标签;启动监听 loopback TCP 端口的服务运行会话并确认监听端口徽标与端口行行为正常。浅色和深色主题各看一次。自动化:run_view_test.go 的 TestRunWindowGivesEachExecutionATab、TestRunWindowAggregatesPluginSessionsAndFoldsDetails、TestRunWindowDragDetachesSessionToTabAndMergesBack,run_group_visual_test.go 的 TestVisualRunGroupedTree(明暗主题 × 中英文),run_ports_test.go、run_ports_visual_test.go、sysinfo/ports_test.go、core/process_ports_test.go、i18n_test.go 的 TestRunDurationPicksTheLargestTwoUnits、run_panels_test.go、build_panels_visual_test.go。", + "verification": "打开 Build 窗口依次执行两个同插件任务(如同步与构建任务),确认 Run 窗口标题为“运行”,同插件会话聚合在同一个分组标签下且左侧执行树列出全部会话;点击树中不同会话可切换右侧控制台;默认折叠详情显示 > 按钮,点击展开显示退出码/构建结果并切换为 v 按钮;将树中某会话拖到顶部标签栏分离为独立标签,再拖回同插件标签重新合并;运行无分组任务确认各自独立成标签,标签图标分别为成功和失败,运行中标签无关闭按钮、结束后可关闭并选中相邻标签;启动监听 loopback TCP 端口的服务运行会话并确认监听端口徽标与端口行行为正常。浅色和深色主题各看一次。自动化:run_view_test.go 的 TestRunWindowGivesEachExecutionATab、TestRunWindowAggregatesPluginSessionsAndFoldsDetails、TestRunWindowDragDetachesSessionToTabAndMergesBack,run_group_visual_test.go 的 TestVisualRunGroupedTree(明暗主题 × 中英文),run_ports_test.go、run_ports_visual_test.go、sysinfo/ports_test.go、core/process_ports_test.go、i18n_test.go 的 TestRunDurationPicksTheLargestTwoUnits、run_panels_test.go、build_panels_visual_test.go。 #2434:TestRunPerformanceCollapseKeepsSummaryAndPersistsTheChoice 经分组内执行树的真实节点点击切回首会话,核对选中身份、独立 CPU/内存样本、折叠持久化和重新打开后的键盘展开;不再按聚合前的顶部标签名找控件。", "macos": { "implementationStatus": "implemented", "verificationStatus": "pending",