In what order are LanguageServerFactory
and LanguageServerEnablementSupport
's methods called?
#335
Closed
InSyncWithFoo
started this conversation in
General
Replies: 2 comments 1 reply
-
IsEnabled is used while collecting associated language servers for a given file. This step is done each time that an lsp feature like completion is processed. This step is done before starting the language server, in other words before creating a connection or a client. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I close this discussion since isEnabled work correctly now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently overriding
isEnabled()
,setEnabled()
,createConnectionProvider()
andcreateLanguageClient()
. The third of which must return an instance ofStreamConnectionProvider
without fail. However, this can only success depending on a specific user setting.Is
isEnabled()
guaranteed to always be called beforecreateConnectionProvider()
? When are the other methods called?It would be useful to have more information about these in doc comments. They are currently stating only what should be obvious from the method names alone:
Beta Was this translation helpful? Give feedback.
All reactions