You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our Excalidraw project on Windows 10 (MacOS seems to work fine), re-linting doesn't happen on file change (after typing) or file save. Meaning, vscode's oxlint server doesn't highlight the change.
It's happening only in certain files (albeit, it seems to be happening in all currently git-tracked files) and I couldn't figure out the pattern.
In the recording, you can see that I'm reproducing the issue in the ./setupTests.ts which isn't imported anywhere (I even removed from vitest config as the setupFiles), but is not reproducing in a new file ./test.ts which is for all intents and purposes identical (especially after I truncate the setupFiles.ts to make sure). I've also committed the test.ts file to make sure it's not git related. I assume it's a cache thing.
In test.ts, once oxlint is restarted to register the file (not sure if that requirement is intentional), (un)commenting the variable correctly triggers the re-lint. In setupFiles.ts it does not.
Code_k80xaButDs.mp4
EDIT:
From verbose output, it seems that the change is being detected in both cases, but textDocument/diagnostic request is not being sent for setupTests.ts for some reason.
This output is when both files were already committed to git, and vscode reloaded. prettier and eslint extensions disabled for the workspace.
What version of Oxlint are you using?
vscode: 1.41.0
local: 1.41.0
What command did you run?
vscode
What does your
.oxlintrc.jsonconfig file look like?I don't believe it's related, but you can see it here https://github.com/excalidraw/excalidraw/blob/29ba7fe96d26127a51876e64cafa5b90432c365b/.oxlintrc.json (PR: excalidraw/excalidraw#10697)
What happened?
In our Excalidraw project on Windows 10 (MacOS seems to work fine), re-linting doesn't happen on file change (after typing) or file save. Meaning, vscode's oxlint server doesn't highlight the change.
It's happening only in certain files (albeit, it seems to be happening in all currently git-tracked files) and I couldn't figure out the pattern.
In the recording, you can see that I'm reproducing the issue in the
./setupTests.tswhich isn't imported anywhere (I even removed from vitest config as thesetupFiles), but is not reproducing in a new file./test.tswhich is for all intents and purposes identical (especially after I truncate thesetupFiles.tsto make sure). I've also committed thetest.tsfile to make sure it's not git related. I assume it's a cache thing.In
test.ts, once oxlint is restarted to register the file (not sure if that requirement is intentional), (un)commenting the variable correctly triggers the re-lint. InsetupFiles.tsit does not.Code_k80xaButDs.mp4
EDIT:
From verbose output, it seems that the change is being detected in both cases, but
textDocument/diagnosticrequest is not being sent forsetupTests.tsfor some reason.This output is when both files were already committed to git, and vscode reloaded. prettier and eslint extensions disabled for the workspace.
test.ts (working fine):
setupTests.ts (not working properly):