lean4-htt/tests/lean/interactive/completionDeprecation.lean.expected.out
Marc Huisinga 057482eb1c
feat: denote deprecations in completion items (#5707)
This PR ensures that deprecated declarations are displayed with a
strikethrough markup in the completion popup of VS Code and that the
docstring of a completion item denotes the meta-data of the deprecation.
2024-10-14 13:05:16 +00:00

96 lines
3.1 KiB
Text

{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}}
{"items":
[{"sortText": "0",
"label": "foo1",
"kind": 3,
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo1"}}}},
{"sortText": "1",
"label": "foo2",
"kind": 3,
"documentation": {"value": "A docstring. ", "kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo2"}}}},
{"tags": [1],
"sortText": "2",
"label": "foo3",
"kind": 3,
"documentation":
{"value": "`SomeStructure.foo3` has been deprecated.", "kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo3"}}}},
{"tags": [1],
"sortText": "3",
"label": "foo4",
"kind": 3,
"documentation":
{"value": "`SomeStructure.foo4` has been deprecated.\n\nA docstring. ",
"kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo4"}}}},
{"tags": [1],
"sortText": "4",
"label": "foo5",
"kind": 3,
"documentation":
{"value":
"`SomeStructure.foo5` has been deprecated, use `SomeStructure.foo1` instead.",
"kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo5"}}}},
{"tags": [1],
"sortText": "5",
"label": "foo6",
"kind": 3,
"documentation":
{"value":
"`SomeStructure.foo6` has been deprecated, use `SomeStructure.foo1` instead.\n\nA docstring. ",
"kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo6"}}}},
{"tags": [1],
"sortText": "6",
"label": "foo7",
"kind": 3,
"documentation":
{"value":
"`SomeStructure.foo7` has been deprecated; please use `SomeStructure.foo1` instead.",
"kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo7"}}}},
{"tags": [1],
"sortText": "7",
"label": "foo8",
"kind": 3,
"documentation":
{"value":
"`SomeStructure.foo8` has been deprecated; please use `SomeStructure.foo1` instead.\n\nA docstring. ",
"kind": "markdown"},
"data":
{"params":
{"textDocument": {"uri": "file:///completionDeprecation.lean"},
"position": {"line": 25, "character": 28}},
"id": {"const": {"declName": "SomeStructure.foo8"}}}}],
"isIncomplete": true}