Skip to content

Commit 3fb3043

Browse files
committed
internal/gopls: delete a lot of code
This deletes a huge amount of gopls code that we are not going to use. Although this does compile, and tests pass, cuelsp does not work in this commit (and its tests are skipped). Subsequent commits will rebuild cuelsp. Signed-off-by: Matthew Sackman <[email protected]> Change-Id: If0e4ec3aaf01962771f29b13b718d261559f769e Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1218027 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
1 parent 2d182a5 commit 3fb3043

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+68
-20680
lines changed

cmd/cue/cmd/integration/base/base_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ func TestMain(m *testing.M) {
1616
}
1717

1818
func TestFormatFile(t *testing.T) {
19+
t.Skip("cuelsp disabled")
1920
const files = `
2021
-- cue.mod/module.cue --
2122
module: "mod.example"

cmd/cue/cmd/integration/workspace/editing_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
)
1212

1313
func TestEditing(t *testing.T) {
14+
t.Skip("cuelsp disabled")
1415
const files = `
1516
-- cue.mod/module.cue --
1617
module: "mod.example/x"

cmd/cue/cmd/integration/workspace/workspace_folders_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func TestMain(m *testing.M) {
2121
// works, or fails, as expected, due to various combinations of
2222
// WorkspaceFolders and the RootURI being set or unset.
2323
func TestWorkspaceFoldersRootURI(t *testing.T) {
24+
t.Skip("cuelsp disabled")
2425
const filesOneModule = `
2526
-- cue.mod/module.cue --
2627
module: "mod.example/b"
@@ -158,6 +159,7 @@ package a
158159
// the workspace folder does not correspond to the root of a CUE module. In
159160
// this case there is simply no CUE module.
160161
func TestNoContainingModule(t *testing.T) {
162+
t.Skip("cuelsp disabled")
161163
const files = `
162164
-- a.cue --
163165
package a
@@ -174,6 +176,7 @@ package a
174176
// this case, the parent directory corresponds to the root of CUE module, but
175177
// the workspace folder itself corresponds to a subdirectory in the CUE module.
176178
func TestWorkspaceFolderWithCUEModInParent(t *testing.T) {
179+
t.Skip("cuelsp disabled")
177180
const files = `
178181
-- cue.mod/module.cue --
179182
-- a/a.cue --

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ require (
2323
golang.org/x/net v0.41.0
2424
golang.org/x/oauth2 v0.30.0
2525
golang.org/x/sync v0.16.0
26-
golang.org/x/sys v0.34.0
2726
golang.org/x/text v0.27.0
2827
golang.org/x/tools v0.34.0
2928
gopkg.in/yaml.v3 v3.0.1
@@ -34,5 +33,6 @@ require (
3433
github.com/kr/pretty v0.3.1 // indirect
3534
github.com/kr/text v0.2.0 // indirect
3635
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
36+
golang.org/x/sys v0.34.0 // indirect
3737
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
3838
)

0 commit comments

Comments
 (0)