tweak dynamic registration disposal

master
Brad Cornes 2021-05-17 12:20:20 +01:00
parent 5cf6cee308
commit 533c2a0a91
1 changed files with 2 additions and 2 deletions

View File

@ -228,10 +228,10 @@ async function createProjectService(
}
})
async function registerCapabilities(): Promise<void> {
function registerCapabilities(): void {
if (supportsDynamicRegistration(connection, params)) {
if (registrations) {
;(await registrations).dispose()
registrations.then((r) => r.dispose())
}
let capabilities = BulkRegistration.create()