Skip to content

Commit 8a26429

Browse files
author
Yuriy Bezsonov
committed
update infrastructure
1 parent c192160 commit 8a26429

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

infra/scripts/ide/code-editor.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,34 @@ configure_token_auth() {
134134
echo "✅ Token authentication configured"
135135
}
136136

137+
configure_code_editor_settings() {
138+
log_info "Configuring Code Editor settings..."
139+
140+
local settings_dir="/home/${CODE_EDITOR_USER}/.code-editor-server/data/User"
141+
sudo -u $CODE_EDITOR_USER mkdir -p "$settings_dir"
142+
143+
sudo -u $CODE_EDITOR_USER tee "$settings_dir/settings.json" >/dev/null << 'EOF'
144+
{
145+
"security.workspace.trust.enabled": false,
146+
"workbench.startupEditor": "terminal",
147+
"telemetry.telemetryLevel": "off",
148+
"update.mode": "none",
149+
"terminal.integrated.defaultProfile.linux": "zsh",
150+
"aws.telemetry": false,
151+
"aws.suppressPrompts": {
152+
"codeWhispererNewWelcomeMessage": true,
153+
"codeWhispererConnectionExpired": true,
154+
"amazonQWelcomeMessage": true
155+
},
156+
"amazonQ.showWalkthrough": false,
157+
"aws.codeWhisperer.shareCodeWhispererContentWithAWS": false,
158+
"aws.cloudformation.telemetry": false
159+
}
160+
EOF
161+
162+
echo "✅ Code Editor settings configured"
163+
}
164+
137165
install_caddy() {
138166
log_info "Installing Caddy..."
139167

@@ -168,6 +196,9 @@ install_code_editor
168196
# Configure token authentication
169197
configure_token_auth
170198

199+
# Configure Code Editor settings (disable workspace trust, open terminal on startup)
200+
configure_code_editor_settings
201+
171202
# Configure systemd service
172203
configure_code_editor_service
173204

0 commit comments

Comments
 (0)