Skip to content

docCommentTemplate not returned for assigned method in class #28786

Closed

Description

@mjbvz

From microsoft/vscode#64097

TypeScript Version: 3.3.0-dev.20181130

Search Terms:

  • DocCommentTemplate

Code
In the js file:

export default class abc {
    /** */
    myfunc = (myparam) => {
        return myparam;
    }
}

Trigger a docCommentTemplate server request inside the comment.

Expected behavior:
Comment template returned

Actual behavior:
No content available. returned

Playground Link:

Related Issues:

Activity

  1. sandersn commented on Dec 11, 2018

    @sandersn
    Member

    This is a property declaration, which is not supported yet in JS. That might be the reason it fails to give the comment.

  2. added
    SuggestionAn idea for TypeScript
    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this feature
    and removed
    BugA bug in TypeScript
    Domain: LS: Completion ListsThe issue relates to showing completion lists in an editor
    on Mar 13, 2019
  3. mjbvz commented on Feb 5, 2020

    @mjbvz
    ContributorAuthor

    Looks like our IntelliSense understands this pattern (even if not all runtimes support it). Any more feedback needed?

  4. added
    BugA bug in TypeScript
    and removed
    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this feature
    SuggestionAn idea for TypeScript
    on Feb 6, 2020
  5. sandersn commented on Feb 6, 2020

    @sandersn
    Member

    No, and property declarations are now stage 4 in the JS spec.

  6. sandersn commented on Feb 6, 2020

    @sandersn
    Member

    Repros in TS as well, so the JS issue is immaterial.

  7. sandersn commented on Feb 6, 2020

    @sandersn
    Member

    The owner of the comment is incorrectly identified as the containing class — getCommentInfo doesn't even handle property declarations.

  8. locked as resolved and limited conversation to collaborators on Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestone

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions