Repository navigation
ADFA-7144: Sync current editor tab and displayed view - #2274
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
|
To enable Code Reviewer, link your GitHub account to your Atlassian account. This is a one-time task that takes less than a minute. Once your account is linked, resubmit the pull request to trigger a code review. |
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Commit 51c169c mistakenly staged and committed a modified binary core.cgt. This restores core.cgt back to the origin/stage baseline.
Conflict in EditorHandlerActivity.closeFile with ADFA-7144 (#2274): kept stage's removingTab, its view-plugin-tab removal order and syncSelectedTab, with the removal passed to removeFile so the indexes shift only after the tab and view are gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAZWMkFWJh7CY7P4kCH
Reverts 6669fb6 and ee8fd0f. Since ADFA-7144 (#2274), closeFile re-selects the selected tab after each close, which sets the current and shown indexes from the tab strip once the closed tab's view is gone. removeFile's own shift, and the removeViews callback that ordered it after the view removal, did the same job a second way. closeFile and removeFile now match stage, apart from removeFile's reset to -1 when the last file closes. Keeps CloseOthersTest.closingAnEarlierTabRemovesItsViewBeforeTheShownIndexMoves, which now pins stage's order: removeViewAt(0) before setDisplayedChild(1). Drops the four EditorViewModelDisplayedFileTest cases that called removeFile on its own, since it no longer shifts the indexes; EditorCloseTabTest covers that at the activity level. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAZWMkFWJh7CY7P4kCH
…a79020 (ADFA-7115 scoped project model, ADFA-7144, ADFA-7142, ADFA-6574 and five more) Brings in from stage, since 5f3d76a: #2241 (ADFA-7083 sqlite-js docs), #2245 (ADFA-7100), #2171 (ADFA-4605), #2284 (ADFA-7226), #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574). No conflicts: stage and this PR change no file in common. Semantic checks: :subprojects:sqlite-debugger depends on no in-repo module, and stage changed neither settings.gradle.kts, gradle/libs.versions.toml, composite-builds/build-logic, CLAUDE.md, ARCHITECTURE.md nor the SQLite debugger README. Stage's workflow edits (the CI perf write removed from debug.yml and analyze.yml) and hook shebang changes do not touch test-sqlite-debugger.yml. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
…137: stage at ea79020 via #2259 Brings in #2259's merge of stage (632bc27): #2241, #2245, #2171, #2284, #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574). #2259's own code is unchanged. No conflicts: stage and this PR change no file in common. Semantic checks: stage adds no Room database, entity or migration, and RecentProjectRoomDatabase is still at version 5 on stage, so this PR's version 6 with debugger_endpoint_table and migration5To6 stays the next step. Stage changes no Koin module (di/AppModule.kt untouched), no AndroidManifest entry, and none of LaunchAppAction, ProjectHandlerActivity, ApkInstaller, InstallationResultReceiver or the SQLite debugger README. Stage drops assets/core.cgt from the index (#2274); .gitignore already covers it and app/build.gradle.kts fetches it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
…139: stage at ea79020 via #2259 and #2260 Brings in #2260's merge of #2259 (54ce393), which carries stage at ea79020: #2241, #2245, #2171, #2284, #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574). The code of #2259 and #2260 is unchanged. No conflicts: stage and this PR change no file in common. Semantic checks: stage changes nothing in plugin-api (sources or api/plugin-api.api), plugin-manager, di/AppModule.kt, CredentialProtectedApplicationLoader, docs/plugin-api.md, docs/PLUGIN_AUTHORING.md or the SQLite debugger README. docs/PLUGIN_API_CHANGELOG.md is unchanged on stage since #2243, which the old base already had; stage's newest heading is still 26.43, so this PR's entry stays under 26.48. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
…138: stage at ea79020 via #2259 Brings in #2259's merge of stage (632bc27): #2241, #2245, #2171, #2284, #2266-#2270 (ADFA-7115), #2274 (ADFA-7144), #2255 (ADFA-7142) and #2247 (ADFA-6574). #2259's own code is unchanged. No conflicts. Two files changed on both sides merged cleanly, in separate hunks: - .github/workflows/debug.yml: stage drops the CI perf write (#2284); this PR's sqliteReleaseApkTest step is untouched. - EditorHandlerActivity.kt: stage's #2247 makes a tap on the greyed Quick Build button flash QuickBuildAction.disabledReason and gives its content description the reason; #2274 syncs the tab after a close. This PR's runQuickBuildAction (dropdown row and status-line tap) is a separate hunk. Semantic checks: stage's QuickBuildAction calls QuickBuildProjectSupport.unsupportedProjectTypeMessage, nonDebuggableVariantMessage and GradleQuickBuildProvisioner.selectedVariantName, which this PR leaves as they are; it only adds isSqliteDebuggerEnabled and the Refused result. The project-model calls this PR adds (getAndroidAppModules, projectDirPath, workspace) are unchanged by ADFA-7115. Stage changes nothing in gradle-plugin, gradle-plugin-config, common, quickbuild, resources, app/build.gradle.kts, gradle/libs.versions.toml, settings.gradle.kts or composite-builds. Not resolved here, as it needs a decision: after #2247 a tap on the greyed button flashes why, while runQuickBuildAction still does nothing when the button is greyed. The dropdown row is disabled then, but the "tap for details" status line is not (for example after a switch to a release variant), so its KDoc's "as the button does" no longer holds. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
Suppress
onTabSelectedduring tab removal, clean up views, then explicitly re-sync selection when closing a tab.