improve type inferencing + fix bug in CallBlock suggestion priorities
This commit is contained in:
parent
24689b3783
commit
c45f19143b
6 changed files with 156 additions and 765 deletions
|
|
@ -54,6 +54,7 @@ const computeSuggestions = (text, env, suggestionPriority: (s: ResolvedType) =>
|
|||
}]),
|
||||
]
|
||||
// return ls;
|
||||
// return [];
|
||||
return ls
|
||||
.map(suggestion => [suggestionPriority(suggestion[2]), ...suggestion] as PrioritizedSuggestionType)
|
||||
.sort(([priorityA], [priorityB]) => priorityB - priorityA)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue