From 29bed4b4a0432593e5b83989d1691f3a1bffd515 Mon Sep 17 00:00:00 2001 From: cooolbros Date: Wed, 27 Nov 2024 13:37:48 +1100 Subject: [PATCH] Remove finalize --- packages/server/src/LanguageServer.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/server/src/LanguageServer.ts b/packages/server/src/LanguageServer.ts index e02675f..4b6aa74 100644 --- a/packages/server/src/LanguageServer.ts +++ b/packages/server/src/LanguageServer.ts @@ -7,7 +7,7 @@ import { devalueTransformer } from "common/devalueTransformer" import { Uri } from "common/Uri" import { VSCodeVDFConfigurationSchema, type VSCodeVDFConfiguration } from "common/VSCodeVDFConfiguration" import { VSCodeVDFLanguageNameSchema, type VSCodeVDFLanguageID } from "common/VSCodeVDFLanguageID" -import { BehaviorSubject, concatMap, distinctUntilChanged, distinctUntilKeyChanged, finalize, firstValueFrom, from, Observable, of, shareReplay, Subject, Subscription, switchMap, zip } from "rxjs" +import { BehaviorSubject, concatMap, distinctUntilChanged, distinctUntilKeyChanged, firstValueFrom, from, Observable, of, shareReplay, Subject, Subscription, switchMap, zip } from "rxjs" import { findBestMatch } from "string-similarity" import { VDFPosition, VDFRange } from "vdf" import { CodeAction, CodeActionKind, CodeLensRefreshRequest, CompletionItem, CompletionItemKind, Diagnostic, DidChangeConfigurationNotification, DocumentLink, DocumentSymbol, TextDocumentSyncKind, TextEdit, WorkspaceEdit, type CodeActionParams, type CodeLensParams, type CompletionParams, type Connection, type DefinitionParams, type DidSaveTextDocumentParams, type DocumentFormattingParams, type DocumentLinkParams, type DocumentSymbolParams, type GenericRequestHandler, type PrepareRenameParams, type ReferenceParams, type RenameParams, type ServerCapabilities, type TextDocumentChangeEvent } from "vscode-languageserver" @@ -147,11 +147,6 @@ export abstract class LanguageServer< } }) ).pipe( - finalize(() => { - console.log(`TeamFortress2FileSystem.finalize ${key}`) - // fileSystems.delete(key) - // this.trpc.client.teamFortress2FileSystem.dispose.mutate({ key }) - }), shareReplay({ bufferSize: 1, refCount: true,