lf-lang / vscode-lingua-franca

Lingua Franca extension for Visual Studio Code
Other
4 stars 3 forks source link

No content-assist in editor #166

Open soerendomroes opened 1 month ago

soerendomroes commented 1 month ago

The editor in VS Code has no content-assist, while Epoch still has it.

I expect ctrl+space to display me more than the strings that it currently does. These strings are not calculated on the server but on the client.

I think that some Xtext configuration for the language server may be missing for this. Maybe it was never registered fo the language server but only for the general case.

Lingua Franca

SCCharts

lhstrh commented 1 month ago

Any hint as to what to change to fix this?

soerendomroes commented 1 month ago

There should be something named *RuntimeModule that binds a lot of things for the Eclipse case. A similar class that may be called *IdeModule or Abstract*IdeModule should do the same for the language server case. This should be added to the injector in your IdeSetup. If this is not the case, the features generated by Xtext will not be available in the language server.

soerendomroes commented 1 month ago

Another problem might be that your LFIdeSetup does not regenerate the injector if it was previously generated without the IdeModule as it may be the case if one just does the normal setup first.

We fixed this here in SCCharts.

soerendomroes commented 13 hours ago

Maybe this fixes it but I should test this first.

https://github.com/soerendomroes/lingua-franca/tree/sdo/overrideSingletonInjectorIfNecessary