fix: use builtin code action for "try this"

This commit is contained in:
Sebastian Ullrich 2024-02-20 10:21:12 +01:00
parent 79a9f6759a
commit d0fb48b4e4

View file

@ -106,7 +106,7 @@ structure TryThisInfo : Type where
This is a code action provider that looks for `TryThisInfo` nodes and supplies a code action to
apply the replacement.
-/
@[code_action_provider] def tryThisProvider : CodeActionProvider := fun params snap => do
@[builtin_code_action_provider] def tryThisProvider : CodeActionProvider := fun params snap => do
let doc ← readDoc
pure <| snap.infoTree.foldInfo (init := #[]) fun _ctx info result => Id.run do
let .ofCustomInfo { stx, value } := info | result