add hint to completions and return value to signature

This commit is contained in:
Daniel Hung 2019-01-16 10:51:22 -08:00
parent f69e56ee1f
commit 587a639887
2 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,7 @@ module.exports = class KiteCompletionProvider {
`);
}
item.detail = c.hint;
item.kind = kindForHint(c.hint);
return item;
});

View File

@ -63,6 +63,10 @@ module.exports = class KiteSignatureProvider {
return param;
});
if (Array.isArray(detail.return_value) && detail.return_value.length && detail.return_value[0].type) {
sig.documentation = `Returns → ${detail.return_value[0].type}`;
}
help.signatures = [sig];
return help;