Skip to content

Commit 27c804c

Browse files
committed
move back Filename() for inDir comparasion
1 parent e6f9892 commit 27c804c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lsp/cache/workspace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func (w *workspace) invalidate(ctx context.Context, changes map[span.URI]*fileCh
326326
// here.
327327
if result.moduleSource != goplsModWorkspace {
328328
for uri, change := range changes {
329-
if !isGoMod(uri) || !source.InDir(string(result.root), string(uri)) {
329+
if !isGoMod(uri) || !source.InDir(result.root.Filename(), uri.Filename()) {
330330
continue
331331
}
332332
changed = true

0 commit comments

Comments
 (0)