-
Notifications
You must be signed in to change notification settings - Fork 32
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
Diagnostics reported remains after branch change where file doesn't exist #857
Comments
I was able to replicate this but now I can't. Do you remember anything you had in this env to make it happen? |
No, seems to have been accidentally fixed somehow 😅 But I'll take it! Let's close and re-open if we encounter this again. |
yeah I am unsure what that would have been, 👍 we can keep an eye out. |
While I'm not sure it counts as deletion, this can be triggered by having issues reported on one branch, then switching branch to one where that file doesn't exist. The errors reported remains. |
Hmm, this is hard as in this case the client didn't delete the file. (aka right click, delete). I'd be interested to know what other language servers do here, but doing a full reload on branch change seems reasonable. |
Yeah... there's probably a branch change listener somewhere in the client already, but ideally we'd be able to catch this without relying on client code 🤔 we could perhaps just check periodically, but if there's a better way, that'd be good. |
Creating "foo.rego" and deleting it doesn't seem to remove the diagnostics reported for that file.
The text was updated successfully, but these errors were encountered: