[feature] Show last selected product.board in quickpick

The current selection will be pushed to the top of the product and board list with this change.

Fixed: 378699195
Change-Id: I247fb032b504275fc5d883bef65b3223e3e9212b
Reviewed-on: https://fuchsia-review.googlesource.com/c/vscode-plugins/+/1172793
Reviewed-by: Adam Barth <abarth@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
1 file changed
tree: 92903e8eaef0805404a5489a0e50b61011e2025e
  1. .ci/
  2. .kokoro/
  3. .vscode/
  4. docs/
  5. resources/
  6. src/
  7. syntax/
  8. testdata/
  9. .eslintrc.json
  10. .gitignore
  11. .vscodeignore
  12. AUTHORS
  13. build-helpers.mjs
  14. build.mjs
  15. BUILDING.md
  16. CHANGELOG.md
  17. CONTRIBUTING.md
  18. LICENSE
  19. OWNERS
  20. package-lock.json
  21. package.json
  22. PATENTS
  23. README.md
  24. THIRD_PARTY_NOTICES.txt
  25. TROUBLESHOOTING_ZXDB.md
  26. tsconfig.json
  27. web-test-runner.config.mjs
README.md

Fuchsia extension for VS Code

Implements the commonly needed functionality for Fuchsia development.

Features

  • View device logs
  • Run and debug tests
  • Explore and debug components
  • FIDL and CML syntax highlighting

View device logs

  1. Select a Fuchsia device using the Device Selector in the bottom toolbar:

    Device selector

  2. Select “Show log for device name” from quick picker:

    Show log

  3. View the logs:

    Log viewer

Run and debug tests

  1. Select the “Testing” tab from the left navigation bar and view the list of tests in your current build configuration:

    Test explorer

  2. Click the “Run Test” or “Debug Test” button to run or debug the test. Double-click the test to jump to the BUILD.gn that defines the test.

Explore and debug components

  1. Select the “Run and Debug” tab from the left navigtaion bar and expand the “Fuchsia Components” panel to view the components running on the device:

    Component explorer

  2. Click the “Attach Debugger” button to attach the debugger to the component. Set a breakpoint by clicking to the left of a line of source code to stop the component on that line of code.

  3. Click a component to show more information about that component.

Settings

FFX path

The FFX tool path can be set under Settings > Extensions > Fuchsia SDK. If this path is not set, the extension will automatically search for it at:

  • ./tools/ffx
  • ./.jiri_root/bin/ffx

Tips

Set fx build as default build task

The default build task can be set under Terminal > Configure Default Build Task.... When set to fx build, the command can be run with Cmd+Shift+b on Mac and Ctrl+Shift+b on Windows and Linux.

Recommended extensions

Contributing

Issues/feedback

  • Please report issues/feedback here.

Legal Notice

Use of the Fuchsia core developer tools is subject to the Google Terms of Service. The Google Privacy Policy describes how data is handled in your use of this service.