sublimelsp / LSP-json

Schema validation/completions for your JSON and Sublime files
MIT License
72 stars 9 forks source link

make schema loading block the async thread #151

Closed rchl closed 1 year ago

rchl commented 1 year ago

Make loading of schemas happen in a single message loop iteration rather than unnecessarily hopping a couple of times onto the async thread while we were already on the async thread.

Fixes https://github.com/sublimelsp/LSP/issues/2238 by blocking the async thread and not letting us request diagnostics until schemas have loaded.