sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
119 stars 47 forks source link

Gracefully handle limitations of using the extension in vscode.dev #102

Open clangsmith opened 1 year ago

clangsmith commented 1 year ago

Is your feature request related to a problem? Please describe. The extension is available in vscode.dev and the syntax features (color coding, syntax suggestion, autocompletion) appear to work just fine. You just can’t connect to SAS servers to submit the code. The Run commands are not available (in command palette, context menu, nor running man icon on toolbar), which is good. However, the user may not understand why they cannot submit code here. We should at least document, if not provide a better user experience to let them know.

Additionally, if you try to run any of the other SAS extension commands (ex. add or update a profile, from the command palette), you get an error which says the command is not found:

image

SAS extension commands on the command palette: image

Describe the solution you'd like Document in the README any limitations of using the extension in vscode.dev. If possible, gracefully handle the unavailability of the commands by providing user-friendly messages, or hide the additional unavailable commands.

Describe alternatives you've considered Just hide the commands/features that don't work in vscode.dev, though users may still be stuck wondering why.

clangsmith commented 1 year ago

@JosephDHenry pointed out, "Currently we need a nodejs env to be able to submit sas code. This is only available on “local” and “remote” extension hosts." See https://code.visualstudio.com/api/advanced-topics/extension-host for more details on the possible extension host configurations.

scnwwu commented 1 year ago

So to be clear, we should NOT say "Submitting code is not supported on vscode.dev". If user connect to a remote from vscode.dev (Codespaces or Tunnel), they can still submit code.