dragos / dragos-vscode-scala

Other
253 stars 39 forks source link

Running outside of vscode #72

Open vorner opened 6 years ago

vorner commented 6 years ago

Good morning

Is there a hard dependency on vscode? I'd like to run the language server in another editor (nvim, in this case), but I haven't found a way how to start it. Would it be possible to provide instructions?

Thank you

alexarchambault commented 6 years ago

@vorner The command that runs the server is built before this line. It roughly looks like

$ java -Xmx768M -Dvscode.workspace=… -Dvscode.logLevel=… -jar path/to/coursier-jar launch \
    -r https://dl.bintray.com/dhpcs/maven \
    -r sonatype:releases \
    -J path/to/tools.jar \
    com.github.dragos:ensime-lsp_2.12:0.2.1 \
    -M org.github.dragos.vscode.Main

It relies on the launcher of coursier to fetch and run the server. The launcher itself is fetched when packaging the extension by this line.