Linter not refreshing with background file change

Hey, thanks for the report. This is a known issue with file watchers after git operations. I’ve seen similar cases here.

Try these steps to debug it:

Quick workaround:

  • CMD+Shift+P > “Developer: Reload Window” after switching branches
  • Or just close and reopen the file

To diagnose the root cause:

  1. Launch Cursor with extensions disabled: run cursor --disable-extensions in a terminal, then try to reproduce the issue. If it goes away, it’s likely a conflict with an extension.

  2. Open the Console (Help > Toggle Developer Tools > Console tab), switch branches, and check if there are any errors.

  3. Try switching branches using Cursor’s built-in Source Control panel instead of the terminal. Does it still happen?

Can you share what you find? I’m especially interested in the first one, does this still happen with extensions disabled.