Skip to content

Commit

Permalink
Merge pull request #425 from test-fullautomation/ntd1hc/bug/vscode-ex…
Browse files Browse the repository at this point in the history
…tensions-XHR-error

Remove proxy information from vscodium setting
  • Loading branch information
test-fullautomation authored Jan 10, 2025
2 parents a3641d2 + 09a0fa0 commit f004bd1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
11 changes: 1 addition & 10 deletions config/robotvscode/data/user-data/User/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,11 @@
"window.zoomLevel": 0,
"editor.renderControlCharacters": false,

"http.proxy": "http://rb-proxy-apac.bosch.com:8080",
"https.proxy": "https://rb-proxy-apac.bosch.com:8080",
"http.proxy": "",
"http.proxyAuthorization": null,
"http.proxyStrictSSL": false,
"editor.renderWhitespace": "all",
"robot.language-server.python": "${env:RobotPythonPath}/python3",
"robot.python.executable": "${env:RobotPythonPath}/python3",
"robot.lint.robocop.enabled ": true,
"robot.python.env": {

},
"python.defaultInterpreterPath": "${env:RobotPythonPath}/python3",
"python.pythonPath ": "${env:RobotPythonPath}/python3",

"redhat.telemetry.enabled": false,
"workbench.editorAssociations": {
Expand All @@ -63,7 +55,6 @@
"security.workspace.trust.enabled": false,
"security.workspace.trust.banner": "never",
"security.workspace.trust.emptyWindow": true,
"timeline.excludeSources": [],
"extensions.autoUpdate": false,
"update.mode": "none",
"robotcode.debug.outputTimestamps": true,
Expand Down
10 changes: 10 additions & 0 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,16 @@ function packaging_vscode() {
mkdir "$sourceDir/vscodium/data"
cp -rf "$vscodeData/data/user-data" "$sourceDir/vscodium/data/"

# add proxy configuration in vscodium setting if given
if [ "$VSCODIUM_PROXY" != "" ] ; then
vscodium_setting_file="$sourceDir/vscodium/data/user-data/User/settings.json"
if [[ -f "$vscodium_setting_file" ]]; then
sed -i -E "s|\"http.proxy\": \"\"|\"http.proxy\": \"$VSCODIUM_PROXY\"|g" "$vscodium_setting_file"
else
echo "Vscodium setting file '$vscodium_setting_file' does not exist"
fi
fi

echo "Install extension for visual codium from *.vsix files under config/robotvscode/extensions folder"
chmod +x "$sourceDir/vscodium/bin/codium"
for extfile in $vscodeData/extensions/*.vsix; do
Expand Down

0 comments on commit f004bd1

Please sign in to comment.