leanprover / lean4

Lean 4 programming language and theorem prover
https://lean-lang.org
Apache License 2.0
4.76k stars 428 forks source link

No whitespace completion for `set_option` #5975

Open Julian opened 3 weeks ago

Julian commented 3 weeks ago

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

Type set_option and trigger autocompletion in an editor (VSCode and neovim tested) and no completion results are returned. But they are properly returned for set_option t (producing all options starting with t).

Context

Reported originally here on Zulip

Steps to Reproduce

(above)

Expected behavior: [Clear and concise description of what you expect to happen]

Completion of all options if no prefix is given.

Actual behavior: [Clear and concise description of what actually happens]

No response.

Versions

[Output of #version or #eval Lean.versionString] "4.14.0" [OS version, if not using live.lean-lang.org.] macOS 15.1 (24B83)

Additional Information

Impact

Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

nomeata commented 3 weeks ago

Are you sure it's only a prefix? I think I have seen it work with a infix of the full option as well.

Maybe the correct title is “No whitespace completion for set_option”?

Julian commented 3 weeks ago

Yes you're right, changed.