Skip to content

Commit 8bbe411

Browse files
committed
Speculatively lock other incremental checker usage w/o test
1 parent 8034f94 commit 8bbe411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/execute/incremental/programtosnapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func getReferencedFiles(program *compiler.Program, file *ast.SourceFile) *collec
263263
// We need to use a set here since the code can contain the same import twice,
264264
// but that will only be one dependency.
265265
// To avoid invernal conversion, the key of the referencedFiles map must be of type Path
266-
checker, done := program.GetTypeCheckerForFile(context.TODO(), file)
266+
checker, done := program.GetTypeCheckerForFileExclusive(context.TODO(), file)
267267
defer done()
268268
for _, importName := range file.Imports() {
269269
addReferencedFilesFromImportLiteral(file, &referencedFiles, checker, importName)

0 commit comments

Comments
 (0)