java-language-server
java-language-server copied to clipboard
Fix language server crash when it encounters a file that is not UTF-8
This PR fixes the crash by ignoring any file that throws an encoding exception while its being read.
Can you add a test?
Sure, I added the test.
Tests are failing @AaronAsAChimp can you check that out?
Yes, so this appears to be because FileStore doesn't get reset between tests. I've added a method to reset it, and reset it when the language server is reset in the test fixture.