Skip to content

Commit

Permalink
Update code following update
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Jun 4, 2024
1 parent 0410329 commit f3b5447
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/google/go-jsonnet/ast"
"github.com/grafana/jsonnet-language-server/pkg/stdlib"
"github.com/grafana/jsonnet-language-server/pkg/utils"
tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet"
tankaJsonnet "github.com/grafana/tanka/pkg/jsonnet/implementations/goimpl"
"github.com/grafana/tanka/pkg/jsonnet/jpath"
"github.com/jdbaldry/go-language-server-protocol/lsp/protocol"
log "github.com/sirupsen/logrus"
Expand Down Expand Up @@ -53,10 +53,7 @@ func (s *Server) getVM(path string) *jsonnet.VM {
// nolint: gocritic
jpath = append(s.configuration.JPaths, filepath.Dir(path))
}
opts := tankaJsonnet.Opts{
ImportPaths: jpath,
}
vm = tankaJsonnet.MakeVM(opts)
vm = tankaJsonnet.MakeRawVM(jpath, nil, nil, 0)
} else {
// nolint: gocritic
jpath := append(s.configuration.JPaths, filepath.Dir(path))
Expand Down

0 comments on commit f3b5447

Please sign in to comment.