Skip to content

Commit

Permalink
move back Filename() for inDir comparasion
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-kuklin committed Apr 22, 2021
1 parent e6f9892 commit 27c804c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/cache/workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (w *workspace) invalidate(ctx context.Context, changes map[span.URI]*fileCh
// here.
if result.moduleSource != goplsModWorkspace {
for uri, change := range changes {
if !isGoMod(uri) || !source.InDir(string(result.root), string(uri)) {
if !isGoMod(uri) || !source.InDir(result.root.Filename(), uri.Filename()) {
continue
}
changed = true
Expand Down

0 comments on commit 27c804c

Please sign in to comment.