Skip to content

Commit

Permalink
feat: new signature help view showing parameter information
Browse files Browse the repository at this point in the history
  • Loading branch information
appelgriebsch committed Apr 18, 2019
1 parent 2c93227 commit f225874
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 @@ -239,8 +239,9 @@ module.exports = class SignatureHelpManager {
const grammar = editor.getGrammar().name.toLowerCase();
const snippetHtml = await this.getSnippetHtml(signature.label, grammar);
let doc = null;

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

0 comments on commit f225874

Please sign in to comment.