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

Display function param type details instead of just type name. #52718

Closed
iugo opened this issue Jun 23, 2018 · 1 comment
Closed

Display function param type details instead of just type name. #52718

iugo opened this issue Jun 23, 2018 · 1 comment
Assignees
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@iugo
Copy link

iugo commented Jun 23, 2018

/**
 * @typedef Options
 * @property {number} number
 */

/**
 * @param {Options} options
 */
function getNum(options) {
  return options.number;
}

When I hover over options, I want to see Options has a property which named number and type number.

以前的版本, 当光标悬停在参数 options 上时, 会显示 Options 内具体的内容. 但是现在仅仅显示一个名字.

希望能该功能回退到以前的版本, 或者作为一个编辑器选项.

@vscodebot vscodebot bot added the javascript JavaScript support issues label Jun 23, 2018
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 25, 2018

Related to microsoft/TypeScript#14662

Showing only the alias is by design here as often the full type signature can be overwhelming and is often not useful

@mjbvz mjbvz closed this as completed Jun 25, 2018
@mjbvz mjbvz added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Jun 25, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Aug 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants