Why does VsCode extension crash every time there is a syntax error?

First of all, many thanks to the team behind the extension for creating a great extension that makes Swift experience decent when not using XCode, which is almost the only option, especially after JetBrains AppCode was discontinued.

I have noticed that every time there is a syntax error, even in middle of editing, the extension may crash. This is fixable by restarting the extension, but is a bit annoying. Is there a way to disable/reduce the crashes related to syntax errors?

1 Like

If you're encountering crashes while using the extension thats definitely something we're interested in getting to the bottom of. Is it the whole extension that needs to be restarted, or do you get the popup that sourcekit lsp needs to be restarted?

Regardless, next time you encounter a crash can you run the Swift: Capture Diagnostic Bundle command and report an issue, attaching the .zip files of the bundled diagnostics? That should help us diagnose what is going wrong. Thanks!

1 Like