Skip to content

Commit

Permalink
fix(aliases): Fix textDocument/didClose
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 10, 2024
1 parent 7ec2483 commit 75f93cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/aliases/lsp/text-document-did-close.go
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 75f93cf

Please sign in to comment.