intro now adds parens when needed

This commit is contained in:
2026-02-24 21:55:51 -08:00
parent c15f22a180
commit 6e7e123847

View File

@@ -241,7 +241,7 @@ introActions (Just $ Unsolved fc qn ctx vty User constraints) =
makeEdit : (QName × Int × Tm) CodeAction makeEdit : (QName × Int × Tm) CodeAction
makeEdit con@(QN _ nm, _, _) = makeEdit con@(QN _ nm, _, _) =
let str = unwords $ resugarOper $ introDCon con let str = addParens True $ resugarOper $ introDCon con
in Intro str $ MkEdit fc $ str in Intro str $ MkEdit fc $ str
introActions _ = pure Nil introActions _ = pure Nil