Skip to content

Commit 22f73e5

Browse files
authoredFeb 22, 2025··
fix(imports): check for name.tact as well (#323)
1 parent dd3f687 commit 22f73e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎server/src/psi/File.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ export class File {
7171
.map(node => node.childForFieldName("library"))
7272
.filter(node => node !== null)
7373

74-
return imports.some(imp => imp.text.slice(1, -1) === filepath)
74+
return imports.some(imp => {
75+
const importPath = imp.text.slice(1, -1)
76+
return importPath === filepath || importPath === `${filepath}.tact`
77+
})
7578
}
7679

7780
public imports(): SyntaxNode[] {

0 commit comments

Comments
 (0)
Please sign in to comment.