eclipselabs/eclipse-language-service

Connection with LS happens late after editor is opened

Closed this issue · 3 comments

Take a simple sample:

  • create a not valid test.json (outside Eclipse) with this content:

{

  • copy/paste test.json in your Eclipse workspace.

Open test.json, the errors doesn't appear.

At the moment, the validation is triggered when editor is connected to the language server. That does happen lazily if user requests a LS feature such as completion.
Instead, the connection of the editor/resource with language server should happen whenever the resource is open by an editor.

I think the 'connection' should happen even before that, because a language server watches a certain path and sends notifications also for resources that are not opened in editors.