File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,18 @@ Extracts the `MessageData` from the first clickable `Try This:` diff widget in t
6969Preserves (only) contexts and tags.
7070-/
7171private def getFirstTryThisFromMessage? : MessageData → Option MessageData
72- | .ofWidget w msg => if w.id == ``Meta.Hint.tryThisDiffWidget then msg else none
72+ | .ofWidget w msg =>
73+ if w.id == ``Meta.Hint.tryThisDiffWidget then
74+ msg
75+ else
76+ none
7377 | .nest _ msg
7478 | .group msg => getFirstTryThisFromMessage? msg
79+ | .compose (.ofWidget w _) msg =>
80+ if w.id == ``Meta.Hint.textInsertionWidget then
81+ msg
82+ else
83+ getFirstTryThisFromMessage? msg
7584 | .compose msg₁ msg₂ => getFirstTryThisFromMessage? msg₁ <|> getFirstTryThisFromMessage? msg₂
7685 | .withContext ctx msg => (getFirstTryThisFromMessage? msg).map <| .withContext ctx
7786 | .withNamingContext ctx msg => (getFirstTryThisFromMessage? msg).map <| .withNamingContext ctx
You can’t perform that action at this time.
0 commit comments