Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax autocompletion #871

Open
1 task done
lovettchris opened this issue Dec 13, 2021 · 1 comment
Open
1 task done

Syntax autocompletion #871

lovettchris opened this issue Dec 13, 2021 · 1 comment
Labels
low priority server Affects the Lean server code

Comments

@lovettchris
Copy link
Contributor

Prerequisites

  • Put an X between the brackets on this line if you have done all of the following:
    • Checked that your issue isn't already filed.
    • Reduced the issue to a self-contained, reproducible test case.

Description

Since Lean syntax is extensible, there is no easy way to write it down or discover what is valid at any point in a Lean program. Therefore I propose we add a syntax element to the LSP for completion prompts. We could use different icons to represent "syntax" from "members".

Steps to Reproduce

image

Expected behavior:

show the user that the keyword "where" is allowed here.

Actual behavior:

it only shows 'members' of current namespaces...

Reproduces how often:

The problem is where is not documented in the theorem proving book, and our reference docs are very incomplete, so there is now way to know the where clause is valid here unless you go an read all the Lean compiler source code and new users shouldn't have to do that.

Versions

Lean (version 4.0.0-nightly-2021-12-13, commit 3a6cc77, Release)

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@Kha Kha changed the title Syntax intellisense Syntax autocompletion Dec 17, 2021
@leodemoura
Copy link
Member

I marking this one as low priority based on the discussion at Zulip.

@mhuisi mhuisi added the server Affects the Lean server code label Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority server Affects the Lean server code
Projects
None yet
Development

No branches or pull requests

3 participants