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

Improve goal state display positions #434

Merged
merged 3 commits into from
May 2, 2021
Merged

Improve goal state display positions #434

merged 3 commits into from
May 2, 2021

Conversation

Kha
Copy link
Member

@Kha Kha commented May 1, 2021

No description provided.

Comment on lines +162 to +164
Moreover, we instruct the LSP server to use the state after the tactic execution if hoverPos >= endPos *and*
there is no nested tactic info (i.e. it is a leaf tactic; tactic combinators should decide for themselves
where to show intermediate/final states)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic for this (see below) is not quite complete yet; it doesn't work for match since there is a macro step in between, meaning you will see the final state (usually "no goals") if you put the cursor anywhere between match and =>. But it is definitely an improvement over the current state for many other tactics, in particular induction.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@Kha Kha changed the title Improve goal state display Improve goal state display positions May 1, 2021
@Kha Kha merged commit b8b8cc7 into leanprover:master May 2, 2021
ChrisHughes24 pushed a commit to ChrisHughes24/lean4 that referenced this pull request Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant