Skip to content
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

"Add to devcontainer.json" does not work inside the container #10617

Open
ThePlenkov opened this issue Jan 7, 2025 · 1 comment
Open

"Add to devcontainer.json" does not work inside the container #10617

ThePlenkov opened this issue Jan 7, 2025 · 1 comment
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@ThePlenkov
Copy link

ThePlenkov commented Jan 7, 2025

Type: Bug

I work in a devcontainer and I want to install the extension. Not to install it every time - I want to use "Add to devcontainer.json" task. Unluckily it does nothing. So when I press it - my devcontainer.json is not updated. When I open same repo from WSL - it works. So I guess it's only related to a case when I use this function from inside a devcontainer. My devcontainer config is trully minimalistic - just the image name:

{
  "name": "Node.js & TypeScript",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
}

I consider it as a bug - why can't it use just a relative path and update devcontainer.json?

Could you please have a look?

VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.44GB (5.70GB free)
Process Argv --crash-reporter-id 9f1a68e0-20d9-4ee5-ad7a-af93a8995ce2
Screen Reader no
VM 0%
Item Value
Remote Dev Container: PayOps Service Odata
OS Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (2 x 0)
Memory (System) 11.69GB (7.51GB free)
VM 0%
Item Value
Remote Dev Container: Node.js & TypeScript
OS Linux x64 5.15.153.1-microsoft-standard-WSL2
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (2 x 0)
Memory (System) 11.69GB (7.51GB free)
VM 0%
Extensions (18)
Extension Author (truncated) Version
vscode-eslint dba 3.0.10
gitlens eam 16.1.1
prettier-vscode esb 11.0.0
copilot Git 1.255.0
copilot-chat Git 0.23.2
angular-console nrw 18.34.0
cody-ai sou 1.56.0
remotehub Git 0.64.0
cds hud 0.7.2
vscode-abap lar 0.5.10
remote-containers ms- 0.394.0
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.88.5
vscode-remote-extensionpack ms- 0.26.0
azure-repos ms- 0.40.0
remote-repositories ms- 0.42.0
app-studio-remote-access SAP 1.16.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyonecf:30548226
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
newcmakeconfigv2:31071590
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

@chrmarti
Copy link
Contributor

chrmarti commented Jan 8, 2025

Please append the Dev Containers log from when this happens. (F1 > Dev Containers: Show Container Log)

@chrmarti chrmarti transferred this issue from microsoft/vscode Jan 8, 2025
@chrmarti chrmarti added the info-needed Issue requires more information from poster label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants