Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qvalentin committed Mar 3, 2024
1 parent ec94307 commit 8504637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/adapter/yamlls/trimTemplate.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package yamlls

import (
// "github.com/mrjosh/helm-ls/internal/lsp"
"github.com/mrjosh/helm-ls/internal/lsp"
"github.com/mrjosh/helm-ls/internal/tree-sitter/gotemplate"
sitter "github.com/smacker/go-tree-sitter"
)

Expand Down
3 changes: 3 additions & 0 deletions internal/lsp/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func (s *DocumentStore) DidOpen(params lsp.DidOpenTextDocumentParams, helmlsConf
func (s *DocumentStore) Get(docuri uri.URI) (*Document, bool) {
path := docuri.Filename()
d, ok := s.documents.Load(path)
if !ok {
return nil, false
}
return d.(*Document), ok
}

Expand Down

0 comments on commit 8504637

Please sign in to comment.