deephaven / vscode-deephaven

Deephaven Visual Studio Code Extension
Apache License 2.0
3 stars 0 forks source link

DHE: Python Language Server #156

Open bmingles opened 1 month ago

bmingles commented 1 month ago

The vscode extension needs to be able to use a language server running on the server in the context of the Core+ worker.

Notes We have a LSP implementation that can be used as a starting point:

https://github.com/deephaven-ent/iris/blob/b10dd884acd3deae810ca85d391b029ee655d95b/web/client-api/src/main/java/com/illumon/iris/ide/shared/IdeSession.java#L141

We might also consider a stop gap solution for this by providing a requirements.txt to the user to mirror their local env with the server. This would get around the need to have access to the server's language service. Related docs:

mofojed commented 2 weeks ago

Here's a way for setting up a local venv that matches a worker on the server: https://deephaven.io/enterprise/docs/development/installing-python/#create-a-local-python-venv I think that may be with a legacy workers, but something similar to that would be a good workaround for setting up a venv similar to your Core+ worker before completing language server, with little work.