You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reorder .vscode/launch.json so .._flutter launch option is default #4493
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:
Create a new serverpod project
Open the root folder of the project in VS Code
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.
Activity