[infra] fix race in flags plugin (no longer plugin)

There was an inherent race in the design of the flags plugin, in that it
was writing package.json, meaning if it started writing before another build
read package.json, the other build could read an empty file (due to how
file writing/truncation works).

This means that flags won't be updating during watch, but that could be
solved in a follow-up CL with a manual watch impl for it, or maaaybe by
turning back into a plugin & doing one of the atomic file write
strategies (write, then move, for example), but this seems like more
work than it's worth atm.

Change-Id: Id15c20fc3e35ec1ae409c0b786eae7f5a966e188
Reviewed-on: https://fuchsia-review.googlesource.com/c/vscode-plugins/+/731343
Reviewed-by: Miguel Flores <miguelfrde@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2 files changed
tree: 3dcd515a968a874f508d8e983f479cf23887a42f
  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.