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

Change activation to only occur when Coq files are opened #1028

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Durbatuluk1701
Copy link
Contributor

Related to #1027.
In particular, you will not need the language server involved unless the extension is "activated", and now it should only activate if you have a focused .v or _CoqProject file.

How this should work (and in some ways a continuation of discussion in #897):

Condition Activate VsCoq
*.v file exists in the workspace False
_CoqProject file exists in the workspace False
*.v file is open False
_CoqProject file is open False
*.v file is focused True
_CoqProject file is focused True

It may also be worth addressing in this PR suggestions made by @RalfJung (in #897 discussion) about not displaying the sidebar unless you have a currently focused .v file. Upon testing, it appears that the sidebar search will not work if you don't have a currently focused .v file, so displaying it when it won't work would be at best confusing.
If we choose to implement this, then additional commits will be needed for that functionality

@rtetley
Copy link
Collaborator

rtetley commented Feb 12, 2025

I think displaying the sidebar only when a .v file is focused sounds fine !
Rebasing to main should fix CI !

@Durbatuluk1701
Copy link
Contributor Author

Durbatuluk1701 commented Feb 12, 2025

@rtetley any ideas on why the CI is failing now? It seems odd that it fails for macos 8.18 and 8.20, but succeeds for 8.19 and master?

@rtetley
Copy link
Collaborator

rtetley commented Feb 12, 2025

Probably sporadic fails ! I'll re-run !

@rtetley
Copy link
Collaborator

rtetley commented Feb 12, 2025

Ugh, I don't know what's happening 😅 I'll investigate tomorrow morning !

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.

2 participants