[vscode] Fix alias and const LHS type highlighting

Previously, the type on the LHS of the `const` declaration was tagged
(and therefore colored) the same way as a constant value,
`storage.type`.  This was simply incorrect.

The `alias` case is a bit more interesting: while the `variable.alias`
tag is probably more correct than the new `entity.name.type`
semantically, the highlighting it produced was a bit confusing. Aliases
names were a different color from other types at their declaration
sites, but not at their use sites, causing confusion. Since textMate
grammar is not able to deduce whether a name is resolved through an
alias or not, its best to just use one color for all "things that refer
to types" in all positions.

Fixed: 99302
Change-Id: I8fdd0ed5cf2ef1a546456a8d9cf20e4c789e35c3
Reviewed-on: https://fuchsia-review.googlesource.com/c/fidl-misc/+/762857
Reviewed-by: Zachary Stewart <zstewart@google.com>
2 files changed
tree: 8d503b36ffc4e8ee8d4bc450a8131a97c41ed177
  1. fidl-lsp/
  2. fidldev/
  3. fidlviz/
  4. mu-fidl/
  5. vscode-language-fidl/
  6. .gitignore
  7. .vscodeignore
  8. AUTHORS
  9. CONTRIBUTING.md
  10. LICENSE
  11. PATENTS
  12. README.md
README.md

Fuchsia Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Fuchsia.