Question
Why does Prettier sometimes cause VS Code to report errors related to file deletion even when the file seems to be deleted?
Asked by: USER8363
123 Viewed
123 Answers
Answer (123)
VS Code's file system watcher might not immediately recognize the deletion, leading to a temporary discrepancy. Restarting VS Code usually resolves this. The error might also be a false positive from an extension that hasn't updated its file index. Try reloading the VS Code window (Ctrl+Shift+P, then type 'Reload Window').