[GUI] Display connection status in status bar.

* Display connection status to differentiate between 3 logic states:
  * No Devices connected
  * Connected to device <name>
  * Disconnected from device <name>
* Since we do not yet query for the default device specifically, we
  include logic to maintain the previous device name even if it is
  not listed anymore. This aids the user to understand that the user
  is no longer connected to that device. This hopefully gives a more
  intuitive and predictable experience. Scenarios where the ffx won’t
  list the previous device are:
  * Physical device disconnection
  * FFX daemon disconnected (Another daemon connected).
* The RCS state indicates whether we can connect to a device or not.
* The status bar icon depends on the connection state.
* The color and text of the status bar change according to the connection
  status.

Fixed: 109024
Change-Id: Ie7bd090cc013bdeec2be8c77db607663b751a7e1
Reviewed-on: https://fuchsia-review.googlesource.com/c/vscode-plugins/+/736115
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Miguel Flores <miguelfrde@google.com>
Reviewed-by: Solly Ross <sollyross@google.com>
4 files changed
tree: 2ddb1da8283b08badebbc8a7215cc633d6645e3d
  1. .ci/
  2. .kokoro/
  3. .vscode/
  4. docs/
  5. media/
  6. resources/
  7. src/
  8. syntax/
  9. testdata/
  10. webviews/
  11. .eslintrc.json
  12. .gitignore
  13. .vscodeignore
  14. AUTHORS
  15. build-helpers.mjs
  16. build.mjs
  17. BUILDING.md
  18. CHANGELOG.md
  19. CONTRIBUTING.md
  20. LICENSE
  21. OWNERS
  22. package-lock.json
  23. package.json
  24. PATENTS
  25. README.md
  26. THIRD_PARTY_NOTICES.txt
  27. TROUBLESHOOTING_ZXDB.md
  28. tsconfig.json
README.md

Fuchsia extension for VS Code

This VS Code extension implements the commonly needed functionality for Fuchsia development.

This is a Work In Progress Currently supporting:

  • Interacting with the fuchsia target device.
    • Setting the default target.
    • Sending commands to the target.
  • Debugging C/C++ components.
  • Filtering and listening to target logs.
  • FIDL syntax highlighting

FFX path settings

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

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.