@@ -8,7 +8,7 @@ source ${SCRIPT_DIR}/utils/*.sh
8
8
run-nginx.sh &
9
9
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf &
10
10
11
- # Add .bashrc for custom promt if not present
11
+ # Add .bashrc for custom prompt if not present
12
12
if [ ! -f " /opt/app-root/src/.bashrc" ]; then
13
13
echo ' PS1="\[\033[34;1m\][\$(pwd)]\[\033[0m\]\n\[\033[1;0m\]$ \[\033[0m\]"' > /opt/app-root/src/.bashrc
14
14
fi
@@ -42,16 +42,22 @@ create_dir_and_file() {
42
42
# Define universal settings
43
43
universal_dir=" /opt/app-root/src/.local/share/code-server/User/"
44
44
user_settings_filepath=" ${universal_dir} settings.json"
45
- universal_json_settings=' {
45
+ universal_json_settings=' // vscode settings are written in json-with-comments
46
+ /* https://code.visualstudio.com/docs/languages/json#_json-with-comments */
47
+ {
46
48
"python.defaultInterpreterPath": "/opt/app-root/bin/python3",
47
49
"telemetry.telemetryLevel": "off",
48
50
"telemetry.enableTelemetry": false,
49
51
"workbench.enableExperiments": false,
50
52
"extensions.autoCheckUpdates": false,
51
- "extensions.autoUpdate": false
53
+ "extensions.autoUpdate": false,
54
+
55
+ // RHOAIENG-14518: Disable the "Do you trust the authors [...]" startup prompt
56
+ "security.workspace.trust.enabled": false,
57
+ "security.workspace.trust.startupPrompt": "never"
52
58
}'
53
59
54
- # Define python debuger settings
60
+ # Define python debugger settings
55
61
vscode_dir=" /opt/app-root/src/.vscode/"
56
62
settings_filepath=" ${vscode_dir} settings.json"
57
63
launch_filepath=" ${vscode_dir} launch.json"
@@ -72,7 +78,7 @@ json_settings='{
72
78
"python.defaultInterpreterPath": "/opt/app-root/bin/python3"
73
79
}'
74
80
75
- # Create necessary directories and files for python debuger and universal settings
81
+ # Create necessary directories and files for python debugger and universal settings
76
82
create_dir_and_file " $universal_dir " " $user_settings_filepath " " $universal_json_settings "
77
83
create_dir_and_file " $vscode_dir " " $settings_filepath " " $json_settings "
78
84
create_dir_and_file " $vscode_dir " " $launch_filepath " " $json_launch_settings "
0 commit comments