panekj / lapce-typescript

Apache License 2.0
19 stars 6 forks source link

Dude, how do i set this up?! #13

Open francisleigh opened 1 year ago

francisleigh commented 1 year ago

Hey! Installed Lapce and immediately installed lapce-typescript

$ typescript-language-server --version
2.0.0

typescript-language-server is installed globally and available as a global in the terminal.

Lapce settings.toml

[lapce-typescript.volt]
serverPath = ""
serverArgs = ["--stdio"]

[core]
icon-theme = "Material Icons"

[ui]
font-family = "Fire Code"

I have restarted Lapce and just for the life of me can't get Intellisense working at all.

Any help would be appreciated!

mateusduraes commented 1 year ago

Hey man, maybe you found out how to use it already. I installed lapce a few minutes ago and I was trying to use this plugin.

This is how I got it configured

In lapce command + shift + p and Open settings file

[core]
modal = false

[lapce-typescript]
"volt.serverPath" = "/Users/mateus/.npm-global/bin/typescript-language-server"
"volt.serverArgs" = "--stdio"

Also make sure to install the version 2 of the typescript language server. Not sure whether the plugin works with other versions.

npm i --global typescript-language-server@2 typescript

Maybe reloading Lapce or the plugin itself after that is a good idea.

francisleigh commented 1 year ago

@mateusduraes Hey mate!

No I haven't gotten to the bottom of the issue so I'm going to try this!

Thanks for your points.

I did downgrade the language server at one point from another ticket I found somewhere so maybe Ive been stitching myself up this whole time....!

I'll try your suggestions and report back!

Peace!

schurhammer commented 1 year ago

I also had issues, what has worked for me is starting lapce using the command line instead of the application menu. Hope this helps someone.