Skip to content

Commit 533c2a0

Browse files
committed
tweak dynamic registration disposal
1 parent 5cf6cee commit 533c2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ async function createProjectService(
228228
}
229229
})
230230

231-
async function registerCapabilities(): Promise<void> {
231+
function registerCapabilities(): void {
232232
if (supportsDynamicRegistration(connection, params)) {
233233
if (registrations) {
234-
;(await registrations).dispose()
234+
registrations.then((r) => r.dispose())
235235
}
236236

237237
let capabilities = BulkRegistration.create()

0 commit comments

Comments
 (0)