Skip to content

Conversation

@avallete
Copy link
Member

@avallete avallete commented Dec 9, 2025

Move IDE configuration prompts from supabase init to supabase functions new when creating the first function, making the init command simpler and more focused. This addresses user feedback that Deno/IntelliJ prompts were irrelevant during project initialization.

Changes:

  • Remove interactive Deno/IntelliJ prompts from supabase init
  • Add prompts to supabase functions new when creating the first function
  • Export WriteVscodeConfig and WriteIntelliJConfig for reuse
  • Improve extension installation messages with explicit marketplace links
  • Update tests to reflect the new behavior

The init command now only handles:

  • Creating config.toml
  • Updating .gitignore

IDE settings are now prompted contextually when users first create a function, with VS Code as the default option.

Fixes DEVWF-30, DEVWF-108, DEVWF-869

Move IDE configuration prompts from `supabase init` to `supabase functions new`
when creating the first function, making the init command simpler and more
focused. This addresses user feedback that Deno/IntelliJ prompts were
irrelevant during project initialization.

Changes:
- Remove interactive Deno/IntelliJ prompts from `supabase init`
- Add prompts to `supabase functions new` when creating the first function
- Export WriteVscodeConfig and WriteIntelliJConfig for reuse
- Improve extension installation messages with explicit marketplace links
- Update tests to reflect the new behavior

The init command now only handles:
- Creating config.toml
- Updating .gitignore

IDE settings are now prompted contextually when users first create a function,
with VS Code as the default option.

Fixes DEVWF-30, DEVWF-108, DEVWF-869
@avallete avallete requested a review from a team as a code owner December 9, 2025 13:30
@coveralls
Copy link

Pull Request Test Coverage Report for Build 20065213712

Details

  • 35 of 45 (77.78%) changed or added relevant lines in 4 files are covered.
  • 6 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.03%) to 56.212%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/init.go 0 1 0.0%
internal/bootstrap/bootstrap.go 0 1 0.0%
internal/functions/new/new.go 23 31 74.19%
Files with Coverage Reduction New Missed Lines %
internal/functions/new/new.go 1 69.77%
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 20054142513: 0.03%
Covered Lines: 6832
Relevant Lines: 12154

💛 - Coveralls

Copy link
Contributor

@jgoux jgoux left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants