Repository navigation
Commit 7629974
authored
ADFA-3641: Wire per-task tooltips for Gradle tasks (#1519)
* ADFA-3641: Wire per-task tooltips for Gradle tasks
Each task row in the Run-Tasks dialog now shows its own tooltip instead of a
single generic one. The tag is derived from the task path
("gradle." + path.removePrefix(":")), matching the authored content keys
(":app:assembleDebug" -> "gradle.app:assembleDebug", ":clean" -> "gradle.clean").
- TooltipTag.gradleTaskTooltipTag(): pure path->tag mapping (unit-tested).
- RunTasksListAdapter: use the per-task tag instead of PROJECT_GRADLE_TASKS.
- ToolTipManager.getTooltip: honor its nullable contract - return null on a
missing tag so uncovered tasks show no popup instead of an "n/a" tooltip.
No fallback.
Tooltip content lives in the SoT documentation.db (loaded separately).
Verified end-to-end on the emulator: per-task Tier-1/2 tooltip + Tier-3 help
page, and graceful no-popup for tasks without authored content.
* ADFA-3641: spotlessApply on touched idetooltips files
Stage now runs spotlessCheck in CI (ADFA-2522). Spotless' ratchet is
file-level, so the two files this branch touches get reformatted
whole-file (space -> tab). Whitespace-only; no logic change.
* ADFA-3641: rethrow CancellationException in getTooltip
A broad catch(Exception) in the getTooltip suspend function swallowed
coroutine CancellationException, silently returning null (a "no tooltip"
result) on cancellation. Rethrow it before the fallback catch to keep
structured concurrency intact.1 parent 304a46c commit 7629974
5 files changed
Lines changed: 608 additions & 558 deletions
File tree
- app/src/main/java/com/itsaky/androidide/adapters
- idetooltips
- src
- main/java/com/itsaky/androidide/idetooltips
- test/java/com/itsaky/androidide/idetooltips
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
0 commit comments