I am fairly new to the topic of SublimeText plugins, so I might be missing some of the basics here.
I’m trying to develop an LSP implementation for a language I am developing, and I want to have the SublimeText LSP client connect to it when I open a source file.
My LSP server is running from the terminal, and listening on localhost port 5555.
Based on the documentation, I have set up my LSP.sublime-settings
configuration like so:
{
"clients":
{
"rust-analyzer":
{
"enabled": true
},
"mylang-lsp":
{
"enabled": true,
"tcp_port": 5555,
"tcp_host":"localhost",
"languages":[{
"languageId": "mylang",
"scopes": [
"source.mylang"
],
}]
}
}
}
My assumption would be that based on this configuration, the LSP client would attempt to connect to my server when I open a .mylang
file, but there is no connection attempt to this socket as far as I can tell. I have tried the LSP: Restart Servers
command as well, and there is still no connection. Nothing is happening on the SublimeText console either, so I am a bit at a loss for how to debug this.
How can I get the LSP plugin to try to connect to my server?