tweak dynamic registration disposal
parent
5cf6cee308
commit
533c2a0a91
|
@ -228,10 +228,10 @@ async function createProjectService(
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
async function registerCapabilities(): Promise<void> {
|
function registerCapabilities(): void {
|
||||||
if (supportsDynamicRegistration(connection, params)) {
|
if (supportsDynamicRegistration(connection, params)) {
|
||||||
if (registrations) {
|
if (registrations) {
|
||||||
;(await registrations).dispose()
|
registrations.then((r) => r.dispose())
|
||||||
}
|
}
|
||||||
|
|
||||||
let capabilities = BulkRegistration.create()
|
let capabilities = BulkRegistration.create()
|
||||||
|
|
Loading…
Reference in New Issue