Skip to content

Salsa does not show doc comment when I have "@returns" in it? #6662

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
egamma opened this issue Jan 27, 2016 · 0 comments
Closed

Salsa does not show doc comment when I have "@returns" in it? #6662

egamma opened this issue Jan 27, 2016 · 0 comments
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@egamma
Copy link
Member

egamma commented Jan 27, 2016

From @alexandrudima on January 27, 2016 11:1

Testing #2218

For the following JS code I get no hover on a1():

/**
 * This is a very cool function that is very nice.
 * @returns something
 */
function a1() {
        try {
                        throw new Error('x');         } catch(x) { x--; }
                        return 23;
}

x - a1()

If I remove the @returns from the js doc comment, then I get a hover, i.e. it works for this:

/**
 * This is a very cool function that is very nice.
 */
function a1() {
        try {
                        throw new Error('x');         } catch(x) { x--; }
                        return 23;
}

x - a1()

Copied from original issue: microsoft/vscode#2436

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

4 participants