Skip to content

Commit

Permalink
fix: parameter help documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Gerlach committed Apr 25, 2019
1 parent 51faae0 commit 197ef36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/signature-help-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ module.exports = class SignatureHelpManager {
let doc = null;

if (parameter) {
doc = parameter.documentation ? `<b>${parameter.label}</b> - ${parameter.documentation.value}` : `<b>${parameter.label}</b>`;
doc = `<b>${parameter.label}</b> ${parameter.documentation && parameter.documentation.value ?
parameter.documentation.value : parameter.documentation || "" }`;
} else if (signature.documentation) {
doc = signature.documentation.kind ? signature.documentation.value : signature.documentation;
} else {
Expand Down

0 comments on commit 197ef36

Please sign in to comment.