lean4-htt/tests/lean/interactive/completionEndSection.lean.expected.out
Marc Huisinga 1b1c802362
feat: auto-completion for end names (#10660)
This PR adds auto-completion for identifiers after `end`. It also fixes
a bug where completion in the whitespace after `set_option` would not
yield the full option list.

Closes #3885.

### Breaking changes

The `«end»` syntax is adjusted to take an `identWithPartialTrailingDot`
instead of an `ident`.
2025-10-08 11:12:05 +00:00

137 lines
4.6 KiB
Text

{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 2, "character": 4}}
{"items":
[{"label": "Foo",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 2, 4, 0]}],
"isIncomplete": false}
Resolution of Foo:
{"label": "Foo",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 2, 4, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 8, "character": 5}}
{"items":
[{"label": "Foo",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 8, 5, 0]}],
"isIncomplete": false}
Resolution of Foo:
{"label": "Foo",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 8, 5, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 14, "character": 5}}
{"items": [], "isIncomplete": false}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 21, "character": 4}}
{"items":
[{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 21, 4, 0]},
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 21, 4, 0]}],
"isIncomplete": false}
Resolution of Foo.Bar:
{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 21, 4, 0]}
Resolution of Bar:
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 21, 4, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 28, "character": 4}}
{"items":
[{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 28, 4, 0]},
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 28, 4, 0]}],
"isIncomplete": false}
Resolution of Foo.Bar:
{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 28, 4, 0]}
Resolution of Bar:
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 28, 4, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 36, "character": 5}}
{"items":
[{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 36, 5, 0]}],
"isIncomplete": false}
Resolution of Foo.Bar:
{"label": "Foo.Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 36, 5, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 44, "character": 5}}
{"items":
[{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 44, 5, 0]}],
"isIncomplete": false}
Resolution of Bar:
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 44, 5, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 52, "character": 8}}
{"items":
[{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 52, 8, 0]}],
"isIncomplete": false}
Resolution of Bar:
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 52, 8, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 59, "character": 4}}
{"items": [], "isIncomplete": false}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 64, "character": 8}}
{"items":
[{"label": "Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 64, 8, 0]}],
"isIncomplete": false}
Resolution of Geh:
{"label": "Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 64, 8, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 72, "character": 4}}
{"items":
[{"label": "Bar.Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 72, 4, 0]},
{"label": "Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 72, 4, 0]}],
"isIncomplete": false}
Resolution of Bar.Geh:
{"label": "Bar.Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 72, 4, 0]}
Resolution of Geh:
{"label": "Geh",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 72, 4, 0]}
{"textDocument": {"uri": "file:///completionEndSection.lean"},
"position": {"line": 79, "character": 8}}
{"items":
[{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 79, 8, 0]}],
"isIncomplete": false}
Resolution of Bar:
{"label": "Bar",
"kind": 9,
"data": ["«external:file:///completionEndSection.lean»", 79, 8, 0]}