Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improper highlighting for jsdoc record types #445

Closed
mjbvz opened this issue Apr 10, 2017 · 0 comments
Closed

Improper highlighting for jsdoc record types #445

mjbvz opened this issue Apr 10, 2017 · 0 comments

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Apr 10, 2017

From @bschlenk on April 10, 2017 22:19

  • VSCode Version: 1.11.1
  • OS Version: 10.12.4

Steps to Reproduce:

  1. Write a function that accepts an object. Annotate the object parameter like this:
/**
 * My awesome function.
 * @param {{id: string, name: string}} object An object with an id and name field.
 */
function myAwesomeFunction(object) {
  const { name, id } = object.
  // do stuff with name and id
}
  1. Observe that it doesn't get syntax highlighting like other jsdoc types.

Normally the type of a function parameter gets a brighter color. However, record types like the one above don't get this highlighting. I'm not sure if this is standard jsdoc, but it is supported by the Google Closure Compiler.

Copied from original issue: microsoft/vscode#24470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant