Skip to content

Commit

Permalink
Don't set TS completion entry details when passed a zero length displ…
Browse files Browse the repository at this point in the history
…ay parts
  • Loading branch information
mjbvz committed Jan 10, 2018
1 parent 5906dc6 commit 05b667d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export default class TypeScriptCompletionItemProvider implements CompletionItemP
return item;
}
const detail = details[0];
item.detail = Previewer.plain(detail.displayParts);
item.detail = detail.displayParts.length ? Previewer.plain(detail.displayParts) : undefined;
const documentation = new MarkdownString();
if (detail.source) {
let importPath = `'${Previewer.plain(detail.source)}'`;
Expand Down

0 comments on commit 05b667d

Please sign in to comment.