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 (registrations) {
|
||||
;(await registrations).dispose()
|
||||
registrations.then((r) => r.dispose())
|
||||
}
|
||||
|
||||
let capabilities = BulkRegistration.create()
|
||||
|
|
Loading…
Reference in New Issue