Skip to content

Show default values in jsdoc quick-info. #27442

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

Closed
mjbvz opened this issue Sep 28, 2018 · 2 comments
Closed

Show default values in jsdoc quick-info. #27442

mjbvz opened this issue Sep 28, 2018 · 2 comments
Labels
Duplicate An existing issue was already created VS Code Tracked There is a VS Code equivalent to this issue

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Sep 28, 2018

From @Wolfonye on September 28, 2018 11:9

I hope I didn't overlook any issue that poses the same request in a different wording; if yes I am sorry.

The request:
I repeatedly encounter situations where I would be glad to see the default values
for optional parameters (if specified) in the ctrl+shift+space quick-info.

Is there anything speaking against such a feature?

Copied from original issue: microsoft/vscode#59609

@mjbvz mjbvz self-assigned this Sep 28, 2018
@mjbvz mjbvz removed their assignment Sep 28, 2018
@mjbvz mjbvz added the VS Code Tracked There is a VS Code equivalent to this issue label Sep 28, 2018
@mjbvz
Copy link
Contributor Author

mjbvz commented Sep 28, 2018

Example jsdoc with default param:

/**
 * @param {string} [somebody=John Doe] - Somebody's name.
 */
function sayHello(somebody) {
    if (!somebody) {
        somebody = 'John Doe';
    }
    alert('Hello ' + somebody);
}

@RyanCavanaugh
Copy link
Member

Duplicate #16665

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created VS Code Tracked There is a VS Code equivalent to this issue
Projects
None yet
Development

No branches or pull requests

2 participants