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,11 +117,15 @@ function createCompletionItemProvider(
}
}
if (str.indexOf(separator) === -1) {
return prefixItems(items, str, prefix)
}
return []
}
return []
}
},
...triggerCharacters
)