Protect against undefined separator (#427)
parent
8766f6d7de
commit
85cf5edccb
|
@ -391,7 +391,7 @@ async function createProjectService(
|
||||||
capabilities.add(CompletionRequest.type, {
|
capabilities.add(CompletionRequest.type, {
|
||||||
documentSelector: null,
|
documentSelector: null,
|
||||||
resolveProvider: true,
|
resolveProvider: true,
|
||||||
triggerCharacters: [...TRIGGER_CHARACTERS, state.separator],
|
triggerCharacters: [...TRIGGER_CHARACTERS, state.separator].filter(Boolean),
|
||||||
})
|
})
|
||||||
if (watchFiles.length > 0) {
|
if (watchFiles.length > 0) {
|
||||||
capabilities.add(DidChangeWatchedFilesNotification.type, {
|
capabilities.add(DidChangeWatchedFilesNotification.type, {
|
||||||
|
|
Loading…
Reference in New Issue