microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 279 forks source link

Can't save Remote - Containers dotfiles settings #4766

Open mjmaurer opened 3 years ago

mjmaurer commented 3 years ago

Issue Type: Bug

I'm trying use dotfiles with Remote containers. The settings do not appear in the User or Workspace UI panels, but instead in the Remote [Dev Container: Existing Dockerfile] panel where each field displays Sync: Ignored. Adding them here results in the settings being removed after a container is rebuilt.

Adding the settings manually to settings.json and opening a remote container displays:

This setting cannot be applied in this window. It will be applied when you open local window.

but of course the settings aren't useful locally. Also, the dotfiles repo isn't cloned when the settings are added to settings.json.

Extension version: 0.163.2 VS Code version: Code 1.54.3 (2b9aebd5354a3629c3aba0a5f5df49f43d6689f8, 2021-03-15T10:55:45.459Z) OS version: Windows_NT x64 10.0.19041 Remote OS version: Linux x64 5.4.72-microsoft-standard-WSL2

System Info |Item|Value| |---|---| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Process Argv|--folder-uri=vscode-remote://wsl+Ubuntu/home/... --remote=wsl+Ubuntu --crash-reporter-id 6e3fba93-8b8c-40ae-be06-68a52a666d49| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|Dev Container: Existing Dockerfile| |OS|Linux x64 5.4.72-microsoft-standard-WSL2| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspyt653:30270858 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstry244:30276681 pythonvsdeb440:30248342 pythonvsded773:30248341 pythonvspyt875:30259475 pythonvsnew554:30280383 pythontb:30265425 vscoresta800:30279781 vspre833cf:30267465 vshan820cf:30276953 ```
chrmarti commented 3 years ago

You can set in the global settings when not connected to a dev container. This requires https://github.com/microsoft/vscode/issues/119183 to fix.