-
Notifications
You must be signed in to change notification settings - Fork 448
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
feat: use incrementality for completion in tactic blocks #5205
feat: use incrementality for completion in tactic blocks #5205
Conversation
Mathlib CI status (docs):
|
-- such as a trailing dot after an option name. This shouldn't be a problem since any subsequent | ||
-- command starts with a keyword that (currently?) does not participate in completion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be true anymore as the subsequent syntax can now also be a tactic keyword and they do participate in completion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the implementation to use the syntax endpos now, which (I think) should not cause any issues.
…5205) This PR enables the use of incrementality for completion in tactic blocks. Consider the following example: ```lean example : True := by have : True := T sleep 10000 ``` Before this PR, in order to respond to a completion request after `T`, `sleep 10000` has to complete first since the command must be fully elaborated. After this PR, the completion request is responded to immediately.
This PR enables the use of incrementality for completion in tactic blocks. Consider the following example:
Before this PR, in order to respond to a completion request after
T
,sleep 10000
has to complete first since the command must be fully elaborated. After this PR, the completion request is responded to immediately.