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

docCommentTemplate returns "No content available" for ES5 method #27638

Closed
mjbvz opened this issue Oct 9, 2018 · 1 comment · Fixed by #31477
Closed

docCommentTemplate returns "No content available" for ES5 method #27638

mjbvz opened this issue Oct 9, 2018 · 1 comment · Fixed by #31477
Assignees
Labels
Bug A bug in TypeScript Domain: JavaScript The issue relates to JavaScript specifically

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Oct 9, 2018

From microsoft/vscode#60335

TypeScript Version: 3.2.0-dev.20181006

Search Terms:

  • jsdoc
  • docCommentTemplate

Code
For the javascript:

/** */
MyClass.prototype.myFunction = function (param1, param2) {
};

Request a docCommentTemplate at the | in /**| */

Bug:
No content available returned.

[Trace  - 11:44:31 AM] Sending request: docCommentTemplate (13). Response expected: yes. Current queue length: 0
Arguments: {
    "file": "/Users/matb/projects/san/b.js",
    "line": 1,
    "offset": 4
}
[Trace  - 11:44:31 AM] Response received: docCommentTemplate (13). Request took 2 ms. Success: false . Message: No content available.

This is a regression from TS 3.0.

We do return the expected response for the case:

/** */
function  foo(param1, param2) {
};
@sandersn
Copy link
Member

This works in 3.5. Adding a test with #31477 to make sure it stays working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript Domain: JavaScript The issue relates to JavaScript specifically
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants