-
-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Remote Container #284
Comments
Hi @nikaro , Yep, it does not support Remote Development yet... Thanks for reporting |
Supporting the WSL Remote would also be amazingly helpful |
Would be great if this can be merged! I'm running environments in WSL and in Windows and I can't really use Project Manager now because it only shows the projects in it's current environment. |
Based on #318 (comment), the Remote Development support for now means: You can
You can not
I'm not sure I'll dig in full support for Remote Development scenarios. Let's wait and see how it goes 😄 |
I just tried it and I see my local projects when running either a local or remote project. So my remote projects are not visible at all now and I can't add them with the Save Project option because I get the message Can I add remote projects manually in the JSON or is this combination not supported? |
Hi @Christilut
That's the intention of this update. You are now able to see and open your projects, even while connected to Remotes. You can't however, save projects when connected to Remotes, yet. I didn't find a way to detect/identify a remote, like the Hope this helps |
Okay, but that does effectively mean that opening remotes is also not possible? Because that was possible before this update but only when inside the remote environment. It would be fine if I could manually add a remote project to the JSON file, but I don't know the syntax to do that. |
How was it possible, if the extension itself wasn't available while connected to remotes? Have you manually installed in the remote?
The JSON syntax is fairly easy (see below - extracted from README), but the Remote Folder Syntax on the other hand, I don't know (that what I called an API) {
"name": "Pascal MI",
"rootPath": "c:\\PascalProjects\\pascal-menu-insight",
"paths": [],
"group": "",
"enabled": true
}, |
I'm not sure how the extension works when installed in remotes. I suspect the projects were being saved inside of the remote, but oddly, when I did that with another extension, I have a few erros related to saving extension's resources, which I suspect would happened to Project Manager as well. I don't use remotes that much. Just a bit of Containers, but mostly running instead of connecting. I tried to find how that extensions works, but it appears their source code are not available. I'll probably have to ask the VS Code team for proper API. |
Alright, thanks for the all the effort put into everything :) |
Hi @Christilut
In the case that the extension is installed on the remote as well as the local, this setting will use the remote extension over the local one. @alefragnani the reason it worked before is cause the global storage API in remote mode will pick up the /User/ location on the remote end. |
Hi @artbycrunk , If I let the Installing the extension on remotes wasn't an expected/tested/supported scenario, simply because I don't use remotes that much, and I'm still trying to figure out the needs. I'm not sure installing the extension on remote is the correct way to use it. To me, the projects should be stored locally, being able to open on remotes when selected. To do this, I need an API, which I don't know exists. The new update is the first step on support for remotes. The idea was to bring back the ability to view and open projects, even when you are connected on remotes. At first sight, I don't see why to install the extension remotely, because doing so, you will have a set of projects for each remote. If that's the case, please fill a new issue, describing the desired scenario, so it could be tracked properly. |
@alefragnani Few days ago, I was able to save/load projects from remotes using your extension. When I'm on Windows-host, I see my local projects and save them or load them locally. When I connect to remote linux-guest, I was also able to save and load remote projects too. This allows me to separate local and remote projects. Today, When this extension got updated, I just lost this feature. To achieve same task i did this:
However, I cannot save anything anymore. All I'm saying, Previous behavior was working flawlessly. Why did this changed? How can I enable save on remote? |
Hi @gencer , What do you mean about separate local and remote projects? When you are connected to remotes, the projects were saved separately (on remote) instead of locally?
It wasn't flawlessly because when connected to remotes, the extension wasn't enabled anymore. So, I had to update the extension to recognise remote scenarios, and be enabled/available, without the need to install it on each remote. As commented here, the I have created #323 to track improvements in Remote Development support. I would like to know user's scenarios/expectations, to decide the next steps. Hope this helps |
I think @gencer was in the same situation as me.
This isn't true? It was running on the remote and worked to select other remote projects. If you only use remote development then the old version worked 100% with remotes. However currently it doesn't work for remotes at all anymore. |
I had the same issue. I am using VSCode mostly in the remote mode. But I found this a workaround. There is a bit complicated way to downgrade extension:
I followed this tutorial with pictures: |
@alefragnani BTW I love the extension! Awesome work. I would suggest maybe some settings flag, for this new behavior as it seems to break some peoples' workflows. But I know |
@pschoffer you are doing some overly complicated process to downgrade the extension,
@alefragnani I have added info about my workflow to #323 |
@Christilut Good to know it's the same situation 👍 @pschoffer You don't need all this steps. Just use the built in command @artbycrunk Yep, I noted, thanks 👍 |
This proves me knowing |
I suggest others which feels to be locked with the newer release, to downgrade to the previous release (10.9.1) until a new update is released. |
With VSCode 1.35 comes Remote functionnality. And so when your are in a "container environment" the project list is no more available, which is normal since it is stored in a file on the host file system (not reachable from the container).
To make it works, it seems that you need to use
vscode.ExtensionContext
API. Cf. https://code.visualstudio.com/api/advanced-topics/remote-extensions#persisting-extension-data-or-stateThe text was updated successfully, but these errors were encountered: