Protect against undefined separator (#427)

master
Brad Cornes 2022-01-17 18:06:28 +00:00
parent 8766f6d7de
commit 85cf5edccb
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ async function createProjectService(
capabilities.add(CompletionRequest.type, {
documentSelector: null,
resolveProvider: true,
triggerCharacters: [...TRIGGER_CHARACTERS, state.separator],
triggerCharacters: [...TRIGGER_CHARACTERS, state.separator].filter(Boolean),
})
if (watchFiles.length > 0) {
capabilities.add(DidChangeWatchedFilesNotification.type, {