mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
warn about void results from completion item providers, fixes #5360
This commit is contained in:
@@ -511,7 +511,12 @@ class SuggestAdapter implements modes.ISuggestSupport {
|
||||
} else if (value instanceof CompletionList) {
|
||||
list = value;
|
||||
defaultSuggestions.incomplete = list.isIncomplete;
|
||||
} else if (!value) {
|
||||
// undefined and null are valid results
|
||||
return;
|
||||
} else {
|
||||
// warn about everything else
|
||||
console.warn('INVALID result from completion provider. expected CompletionItem-array or CompletionList but got:', value);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user