Guess the location of fidl-format

This change introduces two ways that the FIDL extension tries to find
fidl-format. Both of these techniques involve finding the root of the
Fuchsia repo by looking for the .fx-build-dir file.

* Try to walk up the directory hierarchy of each of the workspace
directories, checking if any contains .fx-build-dir.
* Try to find .fx-build-dir in all of the current workspace directories.

In each case, the extension uses the location in this file to construct
a likely path where fidl-format might exist.

Change-Id: Id8bbfce3801c0a96012b71c31216c5f308494316
3 files changed
tree: 1c30e00ac5e80f474b69800f7dfc76c613f42f58
  1. .gitignore
  2. .vscode/
  3. .vscodeignore
  4. AUTHORS
  5. CHANGELOG.md
  6. CONTRIBUTING.md
  7. LICENSE
  8. PATENTS
  9. README.md
  10. images/
  11. language-configuration.json
  12. package-lock.json
  13. package.json
  14. src/
  15. syntaxes/
  16. tools/
  17. tsconfig.json
  18. tslint.json
README.md

FIDL Language Support for Visual Studio Code

This extension adds syntax highlighting to FIDL files.

The syntax highlighting is generated by a script called generate-syntax.ts. That can be run by:

npm install
npm run-script build-syntax