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

[check] Implement fileProgress notification for document progress #106

Merged
merged 2 commits into from
Dec 26, 2022

Conversation

ejgallego
Copy link
Owner

@ejgallego ejgallego commented Dec 20, 2022

This is modelled after Lean's $/lean/fileProgress notification: a
yellow bar in the right side panel indicates what parts of the
document are still not checked.

Fixes #54

Note that we send on fileProgress per sentence, that's likely too
much; for now, we throttle the decoration update. Could be made into a
user-config.

@ejgallego ejgallego added this to the 0.1.1 milestone Dec 20, 2022
@ejgallego ejgallego force-pushed the progress_bar branch 5 times, most recently from a37a2df to 971b587 Compare December 22, 2022 21:26
@ejgallego ejgallego changed the title [wip] Implement fileProgress notification for document progress [check] Implement fileProgress notification for document progress Dec 22, 2022
@ejgallego ejgallego marked this pull request as ready for review December 22, 2022 21:27
@ejgallego ejgallego force-pushed the progress_bar branch 2 times, most recently from 5f6f3dd to 0c74173 Compare December 22, 2022 21:36
controller/coq_lsp.ml Outdated Show resolved Hide resolved
examples/Rtrigo1.v Outdated Show resolved Hide resolved
examples/ex0.v Outdated Show resolved Hide resolved
fleche/doc.ml Outdated Show resolved Hide resolved
@ejgallego ejgallego force-pushed the progress_bar branch 4 times, most recently from 7f9a8c2 to 91f07ab Compare December 26, 2022 01:07
This was a silly mistake, `_end` is convention for unused.

(I'm a bit "dislexic" with this stuff)
This is modelled after Lean's `$/lean/fileProgress` notification: a
yellow bar in the right side panel indicates what parts of the
document are still not checked.

Fixes #54

Note that we send on fileProgress per sentence, that's likely too
much; for now, we throttle the decoration update. Could be made into a
user-config.
@ejgallego ejgallego merged commit c5d0694 into main Dec 26, 2022
@ejgallego ejgallego deleted the progress_bar branch December 26, 2022 01:22
ejgallego added a commit to ejgallego/opam-repository that referenced this pull request Dec 27, 2022
CHANGES:

-------------------------

 - Don't crash if the log file can't be created (@ejgallego, ejgallego/coq-lsp#87)
 - Use LSP functions for client-side logging (@ejgallego, ejgallego/coq-lsp#87)
 - Log `_CoqProject` detection settings to client window (@ejgallego, ejgallego/coq-lsp#88)
 - Use plugin include paths from `_CoqProject` (@ejgallego, ejgallego/coq-lsp#88)
 - Support OCaml >= 4.12 (@ejgallego, ejgallego/coq-lsp#93)
 - Optimize the number of diagnostics sent in eager mode (@ejgallego, ejgallego/coq-lsp#104)
 - Improved syntax highlighting on VSCode client (@artagnon, ejgallego/coq-lsp#105)
 - Resume document checking from the point it was interrupted
   (@ejgallego, ejgallego/coq-lsp#95, ejgallego/coq-lsp#99)
 - Don't convert Coq "Info" messages such as "Foo is defined" to
   feedback by default; users willing to see them can set the
   corresponding option (@ejgallego, ejgallego/coq-lsp#113)
 - Send `$/coq/fileProgress` progress notifications from server,
   similarly to what Lean does; display them in Code's right gutter
   (@ejgallego, ejgallego/coq-lsp#106, fixes ejgallego/coq-lsp#54)
 - Show goals on click by default, allow users to configure the
   behavior to follow cursor in different ways (@ejgallego, ejgallego/coq-lsp#116,
   fixes ejgallego/coq-lsp#89)
 - Show file position in goal buffer, use collapsible elements for
   goal list (@ejgallego, ejgallego/coq-lsp#115, fixes ejgallego/coq-lsp#109)
 - Resume checking from common prefix on document update (@ejgallego,
   ejgallego/coq-lsp#111, fixes ejgallego/coq-lsp#110)
 - Only serve goals, hover, and symbols requests when the document
   has been sufficiently processed (@ejgallego, ejgallego/coq-lsp#120, fixes ejgallego/coq-lsp#100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Progress report bar
2 participants