Account for undefined dependencies
parent
a2b694c3e0
commit
82d0d442e8
|
@ -1474,8 +1474,8 @@ class TW {
|
|||
})
|
||||
|
||||
capabilities.add(DidChangeWatchedFilesNotification.type, {
|
||||
watchers: projects.flatMap((project) =>
|
||||
project.state.dependencies.map((file) => ({ globPattern: file }))
|
||||
watchers: projects.flatMap(
|
||||
(project) => project.state.dependencies?.map((file) => ({ globPattern: file })) ?? []
|
||||
),
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue