From 75f93cfb44a11e4496bb969ec46fbcd1cc4715fd Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:11:30 +0200 Subject: [PATCH] fix(aliases): Fix textDocument/didClose --- handlers/aliases/lsp/text-document-did-close.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/aliases/lsp/text-document-did-close.go b/handlers/aliases/lsp/text-document-did-close.go index 3283aad..7eb4a5f 100644 --- a/handlers/aliases/lsp/text-document-did-close.go +++ b/handlers/aliases/lsp/text-document-did-close.go @@ -1,13 +1,13 @@ package lsp import ( - "config-lsp/handlers/hosts" + "config-lsp/handlers/aliases" "github.com/tliron/glsp" protocol "github.com/tliron/glsp/protocol_3_16" ) func TextDocumentDidClose(context *glsp.Context, params *protocol.DidCloseTextDocumentParams) error { - delete(hosts.DocumentParserMap, params.TextDocument.URI) + delete(aliases.DocumentParserMap, params.TextDocument.URI) return nil }