Question
VSCode How to install VCPKG on VSCode with Zscaler/Proxy
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
II - The Workaround
- Set VSCode Proxy http://user:pass@domain:port

- Set Git Proxy correctly

- Set IE proxy correctly
- Set VCPKG_ROOT env variable

- 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:
- 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

- Replace the content by this text and save

- Open C:\vcpkg\vcpkg-configuration.json and do this modification

- 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
