vscode: VS Code do not allow me to add network path
Type: Bug
Hi, I have an issue with one of my workspace folders that is on a remote host. Problem is that after editor update it asks for UNC name, I tried do all the suggestions that BING AI Copilot gave me. But still not working. Things I did:
- I added path to UNC Allowed host, by IP - not working
- I added name to Host and LMHost file - not working
- I added then security.workspace.trust.untrustedFiles = open - and still not working.
Even AI Bot gived up and told me to contact support. Please tell me what to do because I used this location at my work.
VS Code version: Code 1.78.1 (6a995c4f4cc2ced6e3237749973982e751cb0bf9, 2023-05-04T09:48:08.683Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: Yes
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-4720HQ CPU @ 2.60GHz (8 x 2594) |
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) | undefined |
Memory (System) | 11.89GB (0.96GB free) |
Process Argv | –crash-reporter-id 9a1b7a9e-ff8d-4acd-b85f-f6061646098e |
Screen Reader | no |
VM | 0% |
Extensions (46)
Extension | Author (truncated) | Version |
---|---|---|
vscode-autohotkey-plus | cwe | 2.7.1 |
dart-code | Dar | 3.62.0 |
flutter | Dar | 3.62.0 |
ini-for-vscode | Dav | 0.0.4 |
vscode-ionic-snippets | fiv | 2.2.2 |
dotnet | for | 0.0.4 |
abap-snippets | fre | 0.1.0 |
godot-tools | gee | 1.3.1 |
vscode-pull-request-github | Git | 0.64.0 |
blender-development | Jac | 0.0.18 |
mysql-syntax | jak | 1.3.1 |
cisco | jam | 1.9.1 |
boo | kar | 0.0.2 |
unity-code-snippets | kle | 1.3.0 |
vscode-abap | lar | 0.5.7 |
vscode-autohotkey-plus-plus | mar | 3.3.0 |
kvlang | Mon | 0.0.6 |
vscode-language-pack-pl | MS- | 1.78.2023051009 |
csharp | ms- | 1.25.7 |
isort | ms- | 2022.8.0 |
python | ms- | 2023.8.0 |
vscode-pylance | ms- | 2023.5.10 |
jupyter | ms- | 2023.4.1011241018 |
jupyter-keymap | ms- | 1.1.0 |
jupyter-renderers | ms- | 1.0.15 |
vscode-jupyter-cell-tags | ms- | 0.1.8 |
vscode-jupyter-slideshow | ms- | 0.1.5 |
remote-containers | ms- | 0.292.0 |
remote-ssh | ms- | 0.102.0 |
remote-ssh-edit | ms- | 0.86.0 |
remote-wsl | ms- | 0.78.4 |
cpptools | ms- | 1.15.4 |
powershell | ms- | 2023.5.0 |
remote-explorer | ms- | 0.4.0 |
cordova-tools | msj | 2.6.3 |
platformio-ide | pla | 3.1.1 |
Csharp-ASPNETCore | rah | 1.11.0 |
vscode-commons | red | 0.0.6 |
vscode-xml | red | 0.25.0 |
vscode-yaml | red | 1.12.2 |
aspnet-helper | sch | 0.6.4 |
bash-beautify | sha | 0.1.1 |
html-language-features | Sim | 1.24.2 |
tensorflow-snippets | vah | 0.3.3 |
intellicode-api-usage-examples | Vis | 0.2.7 |
vscodeintellicode | Vis | 1.2.30 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyonecf:30548226
vscccc:30610679
2e4cg342:30602488
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
2i9eh265:30646982
showlangstatbar:30730054
vsctsb:30705553
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30731395
pythoncmvfstr:30731969
fixhidewlkth:30730051
pythongtdpathcf:30731979
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 15 (7 by maintainers)
Phew, good. I will make this clear in our docs: https://aka.ms/vscode-windows-unc
Had the same issue. Always added \\ServerName\Folder and not just ServerName\Folder.
The Diskussion helped me to a lot. Thanks!
God, Thanks it works. In security.allowedUNCHosts I had \name and not just the name. That worked. I thought I need to place a path \name or \name\folder there. It’s just name. Thanks. Maybe in this Allowed UNC Host setting in UI give not only link but example what to enter e.g. localhost or something like that. Thank you for you assistance.
@Leonidas300 I am trying to reproduce and see no issue so far.
Here is my workspace file:
When I open the workspace at first, I see an exclamation mark:
Then I am configuring
localhost
to be allowed and restart and the folder shows its files:Specifically the value of the setting copied as JSON is:
Are you doing anything different?