Issue: The VSCode don't have the ability to route the extension network requests to the proxy (only VSCode application network is routed to the proxy)
I - the clean way (applies to network with Zscaler installed)
- ask for a Zscaler power user profile from your IT support
- request an access to those links if blocked by your firewall/proxy
-
https://www.7-zip.org
-
https://github.com
-
https://aka.ms
-
https://artifacts.keil.arm.com
-
https://mirror.msys2.org
-
https://repo.msys2.org
II - The Workaround
- Set VSCode Proxy http://user:pass@domain:port
![NawresGHARBI_1-1704443433898.png NawresGHARBI_1-1704443433898.png](https://community.st.com/t5/image/serverpage/image-id/64016i8B7434F08024AB84/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Set Git Proxy correctly
![NawresGHARBI_2-1704443503313.png NawresGHARBI_2-1704443503313.png](https://community.st.com/t5/image/serverpage/image-id/64017i4D414EB30D1281F0/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Set IE proxy correctly
- Set VCPKG_ROOT env variable
![NawresGHARBI_4-1704443616206.png NawresGHARBI_4-1704443616206.png](https://community.st.com/t5/image/serverpage/image-id/64019i3093EE7472701D0B/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Install STM32 Extension
- VCPKG install
- Launch VSCode (re-launch after previous configurations)
- Open VSCode Terminal (view -> terminal)
- Cd c:\
- git clone https://github.com/microsoft/vcpkg
- .\vcpkg\bootstrap-vcpkg.bat (if you got an error check your git proxy)
- In the vcpkg folder create a “downloads” folder
- Download these packages and put them under vcpkg\downloads folder:
- https://www.7-zip.org/a/7z2301-extra.7z
- https://github.com/madler/zlib/archive/v1.3.tar.gz
- Type "vcpkg install 7zip" in the terminal
- Type "vcpkg integrate install" in the terminal
- VCPKG activation
- Open STM32 Extension
- Create a project
- Import the created project
(at this level vcpkg is not functional
)
- In the vcpkg/download folder create a registry folder
- Download this zip and extract it in registry folder
https://artifacts.keil.arm.com/vcpkg-ce-registry/registry.zip
- Open vcpkg-configuration.json file
![NawresGHARBI_6-1704443861785.png NawresGHARBI_6-1704443861785.png](https://community.st.com/t5/image/serverpage/image-id/64021iCEA0ACCAB13FEA9B/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Replace the content by this text and save
![NawresGHARBI_7-1704443954236.png NawresGHARBI_7-1704443954236.png](https://community.st.com/t5/image/serverpage/image-id/64022i3831055D58077D89/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Open C:\vcpkg\vcpkg-configuration.json and do this modification
![NawresGHARBI_8-1704444006426.png NawresGHARBI_8-1704444006426.png](https://community.st.com/t5/image/serverpage/image-id/64023i77CC4D58631A4087/image-size/medium/is-moderation-mode/true?v=v2&px=400)
- Copy "c:\vcpkg" content to "C:\Users\xxxxx\AppData\Roaming\Code\User\globalStorage\ms-vscode.vscode-embedded-tools\vcpkg\root" and override files
- Close and restart VSCode