mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -128,7 +128,7 @@ fun resolveModuleAt(name: QualifiedName, directory: PsiDirectory?, context: PyQu
|
||||
* Creates a [PyQualifiedNameResolveContext] from a [foothold] element.
|
||||
*/
|
||||
fun fromFoothold(foothold: PsiElement): PyQualifiedNameResolveContext {
|
||||
val module = ModuleUtilCore.findModuleForPsiElement(foothold.containingFile)
|
||||
val module = ModuleUtilCore.findModuleForPsiElement(foothold.containingFile ?: foothold)
|
||||
return PyQualifiedNameResolveContextImpl(foothold.manager, module, foothold, PythonSdkType.findPythonSdk(module))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user