You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0
down vote
favorite
I am using a framework, that generates automatically properties for classes and even classes can be generated by a define function.
The problem in Visual Studio Code is, that the autocompletion is not working if properties or whole classes are only defined by jsdoc. Or am I wrong? In Webstorm this works.
Example:
/**
* @description
* A Person
*
* @class
*/
function Person(name) {
/**
* @description
* Name of the person
* @property {String}
*/
this.name = name;
/**
* @description
* Another Name of the person
* @property {String}
*/
this.anotherName = name;
/**
* @description
* Another Name of the person
* @property {String}
* @name Person#AndEvenMoreNames
*/
}
var oPerson = new Person("Peter");
oPerson.
Webstorm now enables autocompletion for all 3 properties, whereas Visual Studio Code only shows autocompletion for name and anotherName.
0
down vote
favorite
I am using a framework, that generates automatically properties for classes and even classes can be generated by a define function.
The problem in Visual Studio Code is, that the autocompletion is not working if properties or whole classes are only defined by jsdoc. Or am I wrong? In Webstorm this works.
Example:
Webstorm now enables autocompletion for all 3 properties, whereas Visual Studio Code only shows autocompletion for name and anotherName.
With classes defined only in JS it is the same...
Is my JSDoc wrong or the settings in VSCode?
I've put that question on stackoverflow too: https://stackoverflow.com/questions/53115831/vscode-how-to-autocomplete-only-in-jsdoc-defined-properties-or-classes
The text was updated successfully, but these errors were encountered: