Closed chrisj-skinner closed 1 year ago
Thanks for reporting the problem. We were able to reproduce your issue.
The problem is actually in VS Code and not Wallaby. The filename reported from the VS Code API after the rename change continues to be the previous name until you close the file and restart the editor with the file closed.
We may be able to work around the issue in our extension but I think the correct thing in this case is for VS Code to fix the issue; there are a lot of places where we rely on the correct filename being reported by the API and we'd prefer to hold off doing this unless the turn-around from the VS Code team takes a while.
I'll link to the VS Code issue once we reproduce the issue.
VS Code issue for tracking can be found here: https://github.com/microsoft/vscode/issues/183886
We attempted to show a warning as a fix to this problem but unfortunately the mechanism to warn is not robust and leads to false positives. We have removed the warning message. For now, this is a known limitation and sometimes you may have to manually close editor windows and restart the editor after making a case-sensitive filename change.
As a work around, you may try renaming to a different filename before changing the case, I believe this should work, for example:
file.js
to file1.js
file1.js
to File.js
@smcenlly thanks
Issue description or question
When I start up Wallaby and the test file name is all in lowercase. I see the green indicators. However when I change / and or start up Wallaby with the file name in titlecase. The green, and all other, highlights disappear. However the report still runs find, I just don't get the indicators.
Please see attached gif.
I've tried starting / stopping wallaby with the filename in lowercase first and then titlecase and vice versa. Then selecting custom config via folder selection, auto config setup but I always hit the same issue above and as seen below.
Do test files need to be in lowercase for Wallaby to work, or is there a setting somewhere I need to update? Thanks
Wallaby diagnostics report