Skip to content

Commit

Permalink
Remove finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Nov 27, 2024
1 parent a626f28 commit 29bed4b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/server/src/LanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 29bed4b

Please sign in to comment.