Skip to content

Improve IDE settings prompt formatting and default to yes#4705

Merged
anton-107 merged 1 commit intoantonnek/auto-session-namesfrom
antonnek/ide-settings-prompt-improvements
Mar 18, 2026
Merged

Improve IDE settings prompt formatting and default to yes#4705
anton-107 merged 1 commit intoantonnek/auto-session-namesfrom
antonnek/ide-settings-prompt-improvements

Conversation

@anton-107
Copy link
Contributor

Summary

  • Wrap the settings JSON preview in { } with proper indentation so it stands out visually
  • Add blank lines around the settings block for padding
  • Default the "Apply these settings?" prompt to yes ([Y/n]) — pressing Enter accepts
  • Shorten inline comments (// Global setting instead of // Global setting that affects all remote ssh connections)

Stacked on #4701.

Test plan

  • Existing vscode settings tests pass
  • Manual test: verify the prompt renders with proper formatting and padding
  • Manual test: pressing Enter without typing accepts the settings

🤖 Generated with Claude Code

@eng-dev-ecosystem-bot
Copy link
Collaborator

eng-dev-ecosystem-bot commented Mar 11, 2026

Commit: c280d1d

Run: 23253056980

Env 🟨​KNOWN 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 7 1 9 268 797 6:37
🟨​ aws windows 7 1 9 270 795 6:17
🔄​ aws-ucws linux 2 7 9 364 712 7:52
🔄​ aws-ucws windows 2 7 9 366 710 6:47
💚​ azure linux 2 11 271 795 6:15
💚​ azure windows 2 11 273 793 5:08
🔄​ azure-ucws linux 2 1 11 369 708 8:28
🔄​ azure-ucws windows 2 1 11 371 706 7:25
💚​ gcp linux 2 11 267 798 5:59
💚​ gcp windows 2 11 269 796 5:06
18 interesting tests: 9 SKIP, 7 KNOWN, 2 flaky
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
🟨​ TestAccept 🟨​K 🟨​K 💚​R 💚​R 💚​R 💚​R 🔄​f 🔄​f 💚​R 💚​R
🙈​ TestAccept/bundle/resources/permissions 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions 🟨​K 🟨​K 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions 🟨​K 🟨​K 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct 🟨​K 🟨​K 💚​R 💚​R
🟨​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 🟨​K 🟨​K 💚​R 💚​R
🙈​ TestAccept/bundle/resources/postgres_branches/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/update_protected 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/without_branch_id 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_endpoints/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_endpoints/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_projects/update_display_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/synced_database_tables/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestAccept/ssh/connect-serverless-gpu 🙈​s 🙈​s 🔄​f 🔄​f 🙈​s 🙈​s 🔄​f 🔄​f 🙈​s 🙈​s
🔄​ TestAccept/ssh/connection 💚​R 💚​R 🔄​f 🔄​f 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 20 slowest tests (at least 2 minutes):
duration env testname
4:08 gcp linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:44 azure linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:43 azure linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:14 gcp windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:13 gcp linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:11 azure-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:05 gcp windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
3:03 aws-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
3:02 azure windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:59 azure-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:52 aws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:49 aws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:49 aws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:44 aws-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:43 aws-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:41 aws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:38 aws-ucws linux TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:21 azure-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform
2:09 azure-ucws windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=direct
2:08 azure windows TestAccept/bundle/resources/apps/inline_config/DATABRICKS_BUNDLE_ENGINE=terraform

@anton-107 anton-107 force-pushed the antonnek/auto-session-names branch from d678d8d to 857404f Compare March 11, 2026 11:53
@anton-107 anton-107 force-pushed the antonnek/ide-settings-prompt-improvements branch from 9869d22 to b221e9b Compare March 11, 2026 13:04
@anton-107 anton-107 temporarily deployed to test-trigger-is March 11, 2026 13:05 — with GitHub Actions Inactive
Copy link
Member

@simonfaltum simonfaltum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Agent Swarm Review] Verdict: Approved

  • 0 Critical
  • 0 Major
  • 0 Gap
  • 2 Nit
  • 1 Suggestion

Good UX improvement for the IDE settings prompt. Two nits: the yes/no handling is narrower than the standard pattern, and the gorule/testserver changes are unrelated to the prompt improvements.

func promptUserForUpdate(ctx context.Context, ide, connectionName string, missing *missingSettings) (bool, error) {
question := fmt.Sprintf(
"The following settings will be applied to %s for '%s':\n%s\nApply these settings?",
"The following settings will be applied to %s for '%s':\n\n%s\n\nApply these settings?",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Agent Swarm Review] [Nit]

The change from cmdio.AskYesOrNo to cmdio.Ask with manual [Y/n] handling means only exact "y" matches are accepted. strings.EqualFold(strings.TrimSpace(ans), "y") or also accepting "yes" would be more robust.

@@ -0,0 +1,14 @@
package gorules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Agent Swarm Review] [Nit]

This new gorule and the testserver timestamp changes are unrelated to the IDE settings prompt improvements. Consider splitting into a separate PR for cleaner review.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems indeed unrelated. The output changes are good though

@anton-107 anton-107 force-pushed the antonnek/auto-session-names branch from a177bea to e8fa14a Compare March 18, 2026 14:59
- Wrap settings JSON in { } with proper indentation for visual clarity
- Add blank lines around the settings block
- Default to yes (Y/n) when prompting to apply settings
- Shorten inline comments for less noise

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@anton-107 anton-107 force-pushed the antonnek/ide-settings-prompt-improvements branch from b221e9b to c280d1d Compare March 18, 2026 15:36
@anton-107 anton-107 temporarily deployed to test-trigger-is March 18, 2026 15:37 — with GitHub Actions Inactive
@anton-107 anton-107 merged commit 6575760 into antonnek/auto-session-names Mar 18, 2026
15 checks passed
@anton-107 anton-107 deleted the antonnek/ide-settings-prompt-improvements branch March 18, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants