Using option (2) from this comment: https://github.com/leanprover/lean4/pull/1661#pullrequestreview-1135363727
30 lines
934 B
Text
30 lines
934 B
Text
{"title": "hello world",
|
|
"kind": "quickfix",
|
|
"edit":
|
|
{"documentChanges":
|
|
[{"textDocument": {"version": 0, "uri": "file://codeaction.lean"},
|
|
"edits":
|
|
[{"range":
|
|
{"start": {"line": 29, "character": 4},
|
|
"end": {"line": 29, "character": 4}},
|
|
"newText": "hello!!!"}]}],
|
|
"changes": {},
|
|
"changeAnnotations": {}},
|
|
"data":
|
|
{"providerResultIndex": 0,
|
|
"providerName": "helloProvider",
|
|
"params":
|
|
{"textDocument": {"uri": "file://codeaction.lean"},
|
|
"range":
|
|
{"start": {"line": 29, "character": 4}, "end": {"line": 29, "character": 4}},
|
|
"context": {"diagnostics": []}}}}
|
|
{"title": "a long-running action",
|
|
"kind": "refactor",
|
|
"data":
|
|
{"providerResultIndex": 1,
|
|
"providerName": "helloProvider",
|
|
"params":
|
|
{"textDocument": {"uri": "file://codeaction.lean"},
|
|
"range":
|
|
{"start": {"line": 29, "character": 4}, "end": {"line": 29, "character": 4}},
|
|
"context": {"diagnostics": []}}}}
|