Repository: vscode
Issue: Symbolic link of keybindings.json between Windows and WSL2 are not working.
Labels: bug,keybindings

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
**- VS Code Version:**

Version: 1.80.0 (user setup)
Commit: 660393deaaa6d1996740ff4880f1bad43768c814
Date: 2023-07-04T15:06:02.407Z
Electron: 22.3.14
ElectronBuildId: 21893604
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.22621
 
**- OS Version:** 

Edition	Windows 11 Home
Version	22H2
Installed on	‎10/‎1/‎2022
OS build	22621.1848
Experience	Windows Feature Experience Pack 1000.22642.1000.0

PS C:\WINDOWS\system32> wsl --version                                                                                   WSL version: 1.2.5.0                                                                                                    Kernel version: 5.15.90.1                                                                                               WSLg version: 1.0.51                                                                                                    MSRDC version: 1.2.3770                                                                                                 Direct3D version: 1.608.2-61064218                                                                                      DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp                                                        Windows version: 10.0.22621.1848  

**Steps to Reproduce:**

1. Create a `keybindings.json` file under your WSL2 $HOME directory
2. On Windows, change the name of: C:\Users\<win-user>\AppData\Roaming\Code\User\keybindings.json
3. Create a symbolic link to your WSL2 ~/keybindings.json file using an PowerShell w/ Admin rights,
> New-Item -ItemType SymbolicLink -Path "C:\Users\<win-user>\AppData\Roaming\Code\User\keybingings.json" -Target "\\wsl$\Ubuntu\home\<wsl2-ubuntu-focal-user>\keybindings.json"   
4. open vsCode in Windows and remote connect to Ubuntu WSL2
5. open Keyboard Shortcuts (Ctrl+K Ctrl+S)
6. Make a change (add a new binding or delete a default...)

You will notice that ~/keybindings.json in WSL2 has not changed. Further, you'll notice that listing the contents of "C:\Users\<win-user>\AppData\Roaming\Code\User" in PowerShell (or cmd.exe) now shows two `keybindings.json` file. Doing this with cmd.exe is easier as you can see that one of the two `keybindings.json` files is the symlink previously create (but not used by vscode) and now there is a new `keybindings.json` text file that has the changes from step (6).

Expected behavior is for vscode to use the symbolic link to the WSL2 ~/keybindings.json file.

Following these exact same procedure above for "C:\Users\<win-user>\AppData\Roaming\Code\User\settings.json" and WSL2 ~/settings.json works like a champ. It's just the `keybindings.json` file that has the issue.

PS: the "Issue Reporter" in vscode failed for me...

**System Information**
CPUs | 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)
-- | --
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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 video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled
Load (avg) |  
Memory (System) | 31.79GB (16.27GB free)
Process Argv | --crash-reporter-id da9f2962-5f3c-4410-89cd-106297b105c3
Screen Reader | no
VM | 0%

**Extensions are disabled**

**A/B Experiment Info:**
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
3biah626:30602489
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
a2ce3375:30757347
pythonfmttext:30731395
pythoncmvfstrcf:30756944
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
i26e3531:30780429
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496