the user can now write `termination_by?` to see the termination argument inferred by GuessLex, and turn it into `termination_by …` using the “Try this” widget or a code action. To be done later, maybe: Avoid writing `sizeOf` if it's not necessary.
12 lines
398 B
Text
12 lines
398 B
Text
{"title": "Try this: termination_by (sizeOf n, sizeOf m)",
|
|
"kind": "quickfix",
|
|
"isPreferred": true,
|
|
"edit":
|
|
{"documentChanges":
|
|
[{"textDocument":
|
|
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
|
|
"edits":
|
|
[{"range":
|
|
{"start": {"line": 5, "character": 0},
|
|
"end": {"line": 5, "character": 15}},
|
|
"newText": "termination_by (sizeOf n, sizeOf m)"}]}]}}
|