-
Notifications
You must be signed in to change notification settings - Fork 95
Errors related to missing or unused files do not go away after correcting them #136
Comments
More context on what's happening:
Note: in the Language Server Protocol context, "diagnostics" == "problems" in VS Code. Since we're not clearing the error, I suspect we're not sending a publishDiagnostics with an empty array for those newly added or deleted files. Either that, or we're not listening in on the event that the file was added/deleted and we're not recomputing the diagnostics. |
I think the issue is that we're not sending empty diagnostics for files that have been removed. We only send it for files still present in the repo: https://github.com/Shopify/theme-check/blob/master/lib/theme_check/language_server/handler.rb#L63. |
That makes sense to explain one direction of errors, when you have an unused file and you remove it. What about what you're missing a file, and then you add it? A new file gets added that technically doesn't have any errors within itself, but solves the error that it was missing. |
I was not able to reproduce this. It works for me:
|
Woohoo! Thank you. |
I was missing a file, so then I add it or I deleted an unused file, it is still showing up in the problems list though in the output tab for
theme-check
it shows the count going down for the errors as I delete the unused files:Slack context from @charlespwd :
The text was updated successfully, but these errors were encountered: