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