Use editable copy of sdk instead of sdk modificator (PY-39477)

SdkModificator is not well supported in PythonSdkUpdater and editable copy could play its role instead.
The consequence is that changes are applied only after OK is clicked in `Show All` dialog.
Previously it could be came over by creating sdk modificator for original sdk.

GitOrigin-RevId: 5415eb3bb6c971342b1c1ff576c44bc4571d0bde
This commit is contained in:
Semyon Proshev
2020-10-28 21:39:05 +03:00
committed by intellij-monorepo-bot
parent 62cb5e5754
commit 9109ab3521
15 changed files with 98 additions and 162 deletions

View File

@@ -22,7 +22,7 @@ public class PythonSdkComboBox extends ComboboxWithBrowseButton {
private Project myProject;
public PythonSdkComboBox() {
getComboBox().setRenderer(new PySdkListCellRenderer(null));
getComboBox().setRenderer(new PySdkListCellRenderer());
addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {

View File

@@ -79,7 +79,7 @@ public class PythonPluginCommandLineInspectionProjectConfigurator implements Com
ProjectJdkTable.getInstance().addJdk(sdk);
});
PythonSdkUpdater.updateVersionAndPathsSynchronouslyAndScheduleRemaining(sdk, null, null);
PythonSdkUpdater.updateVersionAndPathsSynchronouslyAndScheduleRemaining(sdk, null);
}
else {
logger.reportMessage(1, "ERROR: Can't find Python interpreter");