-
Notifications
You must be signed in to change notification settings - Fork 184
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
not possible to un-ignore a file after ignoring through should_ignore
#2503
Comments
I suppose a correct solution would be for LSP to automatically unignore the file if And of course that would likely mean that LSP has to call this method more often than it does now. |
I think the issue we have is that |
should_ignore
needs a counterpart should_unignore
should_ignore
should_ignore
should_ignore
On the other hand... it's hard for LSP to know exactly when LSP-* wants to un-ignore a file. It could be at arbitrary time which would then make it pretty much impossible for current solution to work as intended. Having a session method like |
that would be the best 😄 |
Yes, |
Due to the hacky way we did it initially. It was causing issues in other LSP plugins. So this is now more relevant |
Previously, LSP-Copilot had an open issue for how do we prevent a View/File from being managed by Github Copilot with disabling it on the entire syntax.
@jwortmann was kind enough to think this through and add the below function.
LSP/plugin/core/sessions.py
Lines 956 to 965 in 293f4a4
However, now when we want to ignore a file, if that file is to ever be add back to the session, it requires asking the user to close and re-open the file or doing the below hack.
https://github.com/TerminalFi/LSP-copilot/blob/095fd059d1c6f7faaaedc75dc828ed83476d29f1/plugin/listeners.py#L61-L69
What this leads to is impacting other LSP sessions / plugins. See https://discord.com/channels/280102180189634562/1261340378133434439/1261340581779603497 for more details
Suggestion
Add another class func that can be used to trigger a view to be added to the LSP-* session
The text was updated successfully, but these errors were encountered: