Skip to content

Reorder .vscode/launch.json so .._flutter launch option is default #4493

Closed

Description

@lea108

Problem to Solve

I propose to be able to start the flutter app of a serverpod project using Run -> Start debugging (F5) in VS Code with zero configuration.

Steps to reproduce:

  1. Create a new serverpod project
  2. Open the root folder of the project in VS Code
  3. Press F5 or menu option Run -> Start debugging

This does not start the app. Instead VS Code opens .vscode/launch.json and I get an error "Set the 'program' value in your launch config (eg 'lib/main.dart') then launch again"

The reason for this error is because it tries to use the first launch option which is to start the .._client launch option which doesn't have a main.dart file.

Proposal

Reorder .vscode/launch.json so the .._flutter configuration is the first one in the list, which will make VS Code pick that one by default.

Use Case

Serverpod beginners or users who are not aware of how to change which launch configuration to use by VS Code.

Alternatives

Press ctrl + shift + p and enter View: Show Run and Debug. This opens a Run and debug panel on the left of VS Code.

In the top of the "Run and debug" panel, there is a dropdown to change which launch configuration that VS Code uses.

IMHO, it is not given that all/many developers know that this dropdown exist as not all projects uses multiple launch configurations and implementing this Feature will lower the barrier to get started with Serverpod.

Additional context

No response

How experienced are you with this library?

Beginner - Just getting started with this library

Are you interested in working on a PR for this?

  • I want to work on this

Activity

  1. added
    enhancement
    on Dec 22, 2025
  2. deleted a comment from coderabbitai on Dec 26, 2025
  3. moved this from Inbox 📫 to In Progress 🔥 in Serverpod Frameworkson Dec 26, 2025
  4. added
    ux
    on Dec 26, 2025
  5. moved this from In Progress 🔥 to Done 🚀 in Serverpod Frameworkson Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementux

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions