Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Dart: Make browser open automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed May 17, 2019
1 parent b84beec commit 2f86271
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 6 additions & 1 deletion containers/dart/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
"type": "dart",
"request": "launch",
"program": "bin/server.dart",
"cwd": "test-project"
"cwd": "test-project",
"serverReadyAction": {
"pattern": "Listening on localhost:([0-9]+)",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
8 changes: 3 additions & 5 deletions containers/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ This definition includes some test code that will help you verify it is working
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
4. Select the `containers/dart` folder.
5. After the folder has opened in the container, press <kbd>F1</kbd>, and select **Pub: Get Packages** to download packages
6. After packages have been downloaded, press <kbd>F5</kbd> to start the project.
7. Once the project is running, press <kbd>F1</kbd> and select **Remote-Containers: Forward Port from Container...**
8. Select port 8080 and click the "Open Browser" button in the notification that appears.
9. You should see "Hello remote world!" after the page loads.
10. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.
6. After packages have been downloaded, press <kbd>F5</kbd> to start the project and launch the browser.
7. You should see "Hello remote world!" after the page loads.
8. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.

## License

Expand Down

0 comments on commit 2f86271

Please sign in to comment.