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

fix: remove invisible doc filtering #491

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

mhuisi
Copy link
Collaborator

@mhuisi mhuisi commented Jul 1, 2024

This PR removes the last iteration of invisible doc filtering that was introduced in #460, which would sometimes filter visible documents due to event ordering issues with the window.tabGroups API of VS Code.

Fixes #484 and another issue reported at https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Server.20crashes.20on.20new.20file/near/447351002.

With the removal of this code, VS Code will now sometimes open invisible documents in the language server. In my testing, this is not much of an issue for the most common kind of invisible documents (Ctrl + hovering over an identifier).

The other issue for which we introduced this handling in the first place was that the VS Code extension would start looping when using Ctrl + Hover (leanprover/lean4#367), but this issue has been resolved separately since we removed the vscode-lean compatibility layer (#426), and so it is not an issue anymore.

For more details, see microsoft/vscode-languageserver-node#848 (comment).

@mhuisi mhuisi merged commit a6bd9cf into master Jul 1, 2024
2 checks passed
@mhuisi mhuisi deleted the mhuisi/no-invisible-doc-filtering branch July 1, 2024 09:08
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.

Server does not respond to new file
1 participant