Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/pyright-internal/src/analyzer/importResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,13 @@ export class ImportResolver {
filePath: string,
stripTopContainerDir = false
): ModuleNameInfoFromPath | undefined {
/**
* TODO(https://github.com/sourcegraph/scip-python/issues/91)
* Both paths are casted to lowercase to make the comparison case-insensitive. This has been fixed upstream and should be removed on merge.
*/
containerPath = containerPath.toLowerCase();
filePath = filePath.toLowerCase();

containerPath = ensureTrailingDirectorySeparator(containerPath);
let filePathWithoutExtension = stripFileExtension(filePath);

Expand Down