intro now adds parens when needed
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user