yioneko / vtsls

LSP wrapper for typescript extension of vscode
Other
486 stars 7 forks source link

Usage with VSCode #165

Closed jansedlon closed 3 months ago

jansedlon commented 3 months ago

Hello, is there a way to use this with vscode? I went through the readme but didn't find anything. Is it even possible? Or have i misunderstood the purpose of this package?

jansedlon commented 3 months ago

I have tried to define this package in tsconfig.json in plugins but the tsserver.log says

Error: Connection input stream is not set. Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'
yioneko commented 3 months ago

Not sure what are you trying to do? VSCode uses its bundled TypeScript extension for intellisense, and the extension is also the source of the most of the code of this package. There is no support for VSCode and no need for that here. If you are looking for TypeScript support in VSCode, you can just follow its official guide. There is no much difference here since the package basically share the same related code with the VSCode extension.

jansedlon commented 3 months ago

Ahhh sorry, i though that since tsserver is not LSP compliant, this package wraps the package in order to be LSP compliant. Sorry!