Skip to content

Commit

Permalink
fileWatchingGlobPatterns: extensions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Oct 17, 2023
1 parent 3d3aaf4 commit b38fae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gopls/internal/lsp/cache/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ func (s *snapshot) resetActivePackagesLocked() {
const fileExtensions = "go,mod,sum,work"

func (s *snapshot) fileWatchingGlobPatterns(ctx context.Context) map[string]struct{} {
extensions := fileExtensions + gopExtensions() // goxls: Go+
extensions := fileExtensions + "," + gopExtensions() // goxls: Go+
for _, ext := range s.View().Options().TemplateExtensions {
extensions += "," + ext
}
Expand Down
2 changes: 1 addition & 1 deletion gopls/internal/regtest/workspace/broken_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// - using modules and/or GOWORK inside of GOPATH?

// Test for golang/go#53933
func _TestBrokenWorkspace_DuplicateModules(t *testing.T) { // goxls: todo
func TestBrokenWorkspace_DuplicateModules(t *testing.T) { // goxls: todo
// The go command error message was improved in Go 1.20 to mention multiple
// modules.
testenv.NeedsGo1Point(t, 20)
Expand Down

0 comments on commit b38fae6

Please sign in to comment.