Skip to content

Commit ce61c48

Browse files
committed
Replace sourcegraph/go-lsp with internal/protocol
1 parent 975bbaf commit ce61c48

31 files changed

+29
-34
lines changed

commands/completion_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212

1313
"github.com/hashicorp/terraform-ls/internal/filesystem"
1414
ilsp "github.com/hashicorp/terraform-ls/internal/lsp"
15+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
1516
"github.com/hashicorp/terraform-ls/internal/terraform/rootmodule"
1617
"github.com/hashicorp/terraform-ls/logging"
1718
"github.com/mitchellh/cli"
18-
lsp "github.com/sourcegraph/go-lsp"
1919
)
2020

2121
type CompletionCommand struct {

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ require (
2222
github.com/pmezard/go-difflib v1.0.0
2323
github.com/shurcooL/httpfs v0.0.0-20190707220628-8d4bc4ba7749 // indirect
2424
github.com/shurcooL/vfsgen v0.0.0-20200824052919-0d455de96546
25-
github.com/sourcegraph/go-lsp v0.0.0-20200117082640-b19bb38222e2
2625
github.com/spf13/afero v1.3.2
2726
github.com/stretchr/testify v1.4.0
2827
github.com/vektra/mockery/v2 v2.3.0
2928
)
30-
31-
replace github.com/sourcegraph/go-lsp => github.com/radeksimko/go-lsp v0.1.0

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,6 @@ github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8
301301
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
302302
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
303303
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
304-
github.com/radeksimko/go-lsp v0.1.0 h1:evTibJ/0G2QtamSdA6mi+Xov7t5RpoGmMcTK60bWp+E=
305-
github.com/radeksimko/go-lsp v0.1.0/go.mod h1:tpps84QRlOVVLYk5QpKYX8Tr289D1v/UTWDLqeguiqM=
306304
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
307305
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
308306
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=

internal/context/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"time"
66

77
"github.com/hashicorp/terraform-ls/internal/filesystem"
8+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
89
"github.com/hashicorp/terraform-ls/internal/terraform/rootmodule"
910
"github.com/hashicorp/terraform-ls/internal/watcher"
1011
"github.com/hashicorp/terraform-ls/langserver/diagnostics"
11-
"github.com/sourcegraph/go-lsp"
1212
)
1313

1414
type contextKey struct {

internal/lsp/completion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lsp
33
import (
44
"github.com/hashicorp/hcl-lang/lang"
55
"github.com/hashicorp/terraform-ls/internal/mdplain"
6-
lsp "github.com/sourcegraph/go-lsp"
6+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
77
)
88

99
type CompletionList struct {

internal/lsp/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package lsp
22

33
import (
44
"github.com/hashicorp/hcl/v2"
5-
lsp "github.com/sourcegraph/go-lsp"
5+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
66
)
77

88
func HCLSeverityToLSP(severity hcl.DiagnosticSeverity) lsp.DiagnosticSeverity {

internal/lsp/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package lsp
22

33
import (
4+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
45
"github.com/hashicorp/terraform-ls/internal/source"
5-
lsp "github.com/sourcegraph/go-lsp"
66
)
77

88
type File interface {

internal/lsp/file_change.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package lsp
22

33
import (
44
"github.com/hashicorp/terraform-ls/internal/filesystem"
5-
"github.com/sourcegraph/go-lsp"
5+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
66
)
77

88
type contentChange struct {

internal/lsp/file_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"path/filepath"
66
"strings"
77

8+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
89
"github.com/hashicorp/terraform-ls/internal/uri"
9-
"github.com/sourcegraph/go-lsp"
1010
)
1111

1212
func FileHandlerFromDocumentURI(docUri lsp.DocumentURI) *fileHandler {

internal/lsp/file_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package lsp
33
import (
44
"testing"
55

6-
"github.com/sourcegraph/go-lsp"
6+
lsp "github.com/hashicorp/terraform-ls/internal/protocol"
77
)
88

99
var (

0 commit comments

Comments
 (0)