mirror of
https://github.com/kiteco/vscode-plugin.git
synced 2024-10-27 01:12:35 +03:00
add hint to completions and return value to signature
This commit is contained in:
parent
f69e56ee1f
commit
587a639887
@ -70,6 +70,7 @@ module.exports = class KiteCompletionProvider {
|
||||
|
||||
`);
|
||||
}
|
||||
item.detail = c.hint;
|
||||
item.kind = kindForHint(c.hint);
|
||||
return item;
|
||||
});
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user