-
Notifications
You must be signed in to change notification settings - Fork 3
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
Attach VSCode with settings and extensions #74
Comments
An attach to Container command will be added in the future! See here for when it's released: |
As a workaround, we could run "ddev code" on drowl-init, wait until VSCode attached to the web server and then write our settings / extensions to the attached container settings. Unfortunatly, as we use WSL2 these attached Container Settings are sitting inside the Windows Folder Structure: "C:/Username/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/nameConfigs-ddev-ddev-vscode-devcontainer-drupal9-template-web.json" (check via command "Remote-Containers: Open Container Configuration") |
See https://code.visualstudio.com/docs/remote/attach-container#_attached-container-configuration-files for more information about the attached container configuration file. NOTE, that we can not use da devcontainer.json, and link our web image Dockerfile as a starting point, as then VSCode will orchestrate our container and not ddev any more. Hence the web level ddev commands will not work anymore. |
I think apart from ddev / docker / remote the correct way here is indeed to use the For production copies I think this should not be used by default. Idea: perhaps instead of having When setting up the project, these commands would then be called automatically, so they can also be split cleanly. If you like the idea @joshsedl we should perhaps have a master plan issue for these prod / dev things and the idea could be elaborated there... I just wrote it down here, as I came up with this when thinking about vscode integration into production projects like Drupal dev modules etc... so it's not only Drupal specific. |
Let's talk about this inside #124 |
There is now the Devcontainer CLI, but unfortunately I don't think, that is, what we are looking for. See: microsoft/vscode-remote-release#5278 (comment). |
We now can install extensions through |
Ah |
Created a first MR draft (only code, not tested yet) here: #163 |
Nope, #74 (comment) did not help... oh well, back to the drawing board. |
I'll keep the issue branch open for future reference. |
It is currently not possible to use a custom settings/extensions for the attached container, current workaround uses a workspace in the project directory with custom workspace settings/extensions, but inside a workspace it is only possible to recommend these extensions not force install them. Furthermore it seems like some workspace settings get overwritten by my "normal" VSCode settings which should not happen.
Everything documented here:
microsoft/vscode-remote-release#5944
and here:
#28
The text was updated successfully, but these errors were encountered: