deephaven / vscode-deephaven

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

Associating connections with files is odd #123

Open chipkent opened 2 months ago

chipkent commented 2 months ago

DH connections are now associated with files. This is odd. What if I want to run a file against two different servers? For example, I could have one script that is always run against two servers, where each server computes half of the universe. Similarly, a script could be run against a production and a backup server.

image
mofojed commented 1 month ago

This comes down to how we handle environments... we have the "Run Deephaven File"/"Run Deephaven selected lines" actions, and we don't want to prompt every time you run those if you have multiple environments. Perhaps we have an extra "Run Deephaven ... " action that allows you to select a different server, and the quick actions show the previously used server? @bmingles what do you think? We could also show the currently associated server with the quick actions as well (and/or code lens, along with a "change server" in the code lens).

bmingles commented 1 month ago

Just to call out the existing functionality in case it isn't disoverable. Files can be moved to another connection via:

Regarding supporting associated an editor with multiple connections, I wonder if we could do something like: