Skip to content

Observe @private and @protected in JSDocs for Property Suggestions #14009

Closed
@mjbvz

Description

@mjbvz

From: microsoft/vscode#5163

TypeScript Version: 2.2.0- 20170210

Code

class Foo {
    /**
     * abc docs 
     * 
     * @private
    */
    abc;

    /**
     * xyz docs
     * 
     * @public
     */
    xyz;

}

(new Foo()).|

Expected behavior:
When triggering suggestions on instances of Foo, an entry for abc is not returned.

Actual behavior:
All members of Foo are returned. The @private annotation seems to be ignored.

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueDomain: JSDocRelates to JSDoc parsing and type generationDomain: JavaScriptThe issue relates to JavaScript specificallySuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions