CudaText-addons / cuda_lsp

LSP Client plugin for CudaText
2 stars 3 forks source link

do not start 2 lsp servers on startup #192

Closed veksha closed 10 months ago

Alexey-T commented 10 months ago

lambda *args: self._do_on_open(ed_self)

is this callback started now only once? what if it starts 2 times? if it is 'fixed' name of callback (eg 'cuda_lsp.do_start') then it starts only once. if it is lambda, i am not sure.

veksha commented 10 months ago

"lambda function will not be called itself by simply defining it. It will only be executed when it is invoked as a regular function."

>>> lambda: print(123)
>>> (lambda: print(123))()
123