Closed denis-shienkov closed 1 month ago
Also, I looked the similar issue: https://github.com/microsoft/vscode-languageserver-node/issues/1333
And tried this options:
const serverOptions: ServerOptions = {
run: {
command: '',
transport: TransportKind.pipe,
args: ['--pipe ' + lspSocket]
},
debug: {
command: '',
transport: TransportKind.pipe,
args: ['--pipe ' + lspSocket]
}
};
then I go the following error:
Unable to start Qbs language client on pipe: \\.\pipe\qbs-lsp-3328, Error: Unsupported server configuration {
"run": {
"command": "",
"transport": 2,
"args": [
"--pipe \\\\.\\pipe\\qbs-lsp-3328"
]
},
"debug": {
"command": "",
"transport": 2,
"args": [
"--pipe \\\\.\\pipe\\qbs-lsp-3328"
]
}
}
Can someone help me please?
Seems to be worked, need to create a wrapper around the TransportsMessages, see the similar issue: https://github.com/microsoft/vscode-languageserver-node/issues/1333
Also, the real use-case code can be looked here (as an example): https://github.com/denis-shienkov/vscode-qbs/blob/master/src/qbslanguageclient.ts
Hi all.
I'm trying to write the VSCode extension with the LanguageClient support. My LSP server already started, and provides the ready pipe path in a form like: '\\.\pipe\qbs-lsp-1884' .
My extension code looks like this:
So, I have not ideas where in the
ServerOptions
it is possible to specify the path to the pipe? Is it possible at all?Because I got the error that the server can't be started:
UPD: I see the comments about the ServerOptions in the LanguageClient sources:
but it is unclear this "simply needs to create a connection to the passed pipe name or port number" where to pass?