Can I programmatically open a directory when invoking opensshremotes.openEmptyWindow
#58
-
Our extension connects users to remote environments, but our users are rightly complaining of a bad experience. This is because every time they connect to a remote, there are rituals they have to repeat. Among them are clicking "continue", agreeing that they trust the thing they are about to open and then finally navigating to the same folder every time. We put customer code into a directory called "projects." The thing is we can navigate to the folder for them if they come from the web. We simply pass that in as part of a vscode URL. That said, I don't see how we can do the same thing from within an extension. If this is possible via VScode URL it should be allowed from an extension IMO. Furthermore, (and I realize this is a separate ask) it would be nice to give users the ability to "never do this again" with the other rituals as well. It's a bad experience for them. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hi @jasongonzales23 , First, about the About the API, It seems I'm not sure the developers of that extension are aware of this Discussions repo (they weren't aware of the Slack channel), so I suggest you to ask your question on their repo as well (https://github.com/microsoft/vscode-remote-release/issues/). |
Beta Was this translation helpful? Give feedback.
Hi @jasongonzales23 ,
First, about the
trust
message. If you are talking about theWorkspace Trust
feature, I suppose the Remote extension has no special treatment on that matter. So, it simply inherits the VS Code setting. If that the case, and the user is annoyed about that AND it does trust on remotes, he/she could simply disable thesecurity.workspace.trust.enabled
setting. I'm not aware of any Remote specific trust setting, but I guess it would be a good feature request for VS Code.About the API, It seems
opensshremotes.openEmptyWindow
does indeed support parameters, but not exactly what you need. Based on this issue (microsoft/vscode-remote-release#3552) you are able to pass some c…