prevent showing completions for unknown prefixes

master
Brad Cornes 2018-05-07 22:16:06 +01:00
parent db22334409
commit 682d12f44d
1 changed files with 5 additions and 1 deletions

View File

@ -117,7 +117,11 @@ function createCompletionItemProvider(
}
}
return prefixItems(items, str, prefix)
if (str.indexOf(separator) === -1) {
return prefixItems(items, str, prefix)
}
return []
}
return []