Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected void setInterpreter(Project project, VirtualFile file, String pythonEx
}
PythonSdkType.getInstance().setupSdkPaths(sdk);

Module module = ProjectFileIndex.SERVICE.getInstance(project).getModuleForFile(file, false);
Module module = ProjectFileIndex.getInstance(project).getModuleForFile(file, false);

if (null != module) {
ModuleRootModificationUtil.setModuleSdk(module, sdk);
Expand All @@ -39,7 +39,7 @@ public void update(@NotNull AnActionEvent e) {
if (isEventOnVenvDir(e)) {
VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE);
Project project = e.getProject();
Module module = ProjectFileIndex.SERVICE.getInstance(project).getModuleForFile(file, false);
Module module = ProjectFileIndex.getInstance(project).getModuleForFile(file, false);
if (null != module) {
e.getPresentation().setText(String.format(POPUP_ITEM_TEXT, module.getName()));
e.getPresentation().setEnabledAndVisible(true);
Expand Down