mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-14 17:17:07 +02:00
Revert "Temporally disable multithread startup"
This reverts commit bef3b3ba
This commit is contained in:
src/com/maddyhome/idea/vim
@@ -18,6 +18,7 @@
|
||||
|
||||
package com.maddyhome.idea.vim
|
||||
|
||||
import com.intellij.openapi.application.ApplicationManager
|
||||
import com.intellij.openapi.components.PersistentStateComponent
|
||||
import com.intellij.openapi.components.RoamingType
|
||||
import com.intellij.openapi.components.State
|
||||
@@ -56,13 +57,10 @@ class VimLocalConfig : PersistentStateComponent<Element> {
|
||||
VimPlugin.getHistory().readData(state)
|
||||
}
|
||||
|
||||
// Disable multithreading for EAP release
|
||||
setup()
|
||||
/*
|
||||
if (ApplicationManager.getApplication().isUnitTestMode) {
|
||||
setup()
|
||||
} else {
|
||||
ApplicationManager.getApplication().executeOnPooledThread(setup)
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
@@ -21,7 +21,9 @@ import com.intellij.ide.plugins.IdeaPluginDescriptor;
|
||||
import com.intellij.ide.plugins.PluginManager;
|
||||
import com.intellij.ide.util.PropertiesComponent;
|
||||
import com.intellij.notification.Notification;
|
||||
import com.intellij.notification.NotificationDisplayType;
|
||||
import com.intellij.notification.NotificationListener;
|
||||
import com.intellij.notification.Notifications;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.ApplicationInfo;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
@@ -324,14 +326,11 @@ public class VimPlugin implements BaseComponent, PersistentStateComponent<Elemen
|
||||
Initialization.initialized();
|
||||
};
|
||||
|
||||
// Disable multithreading for EAP release
|
||||
asyncSetup.run();
|
||||
/*
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
asyncSetup.run();
|
||||
} else {
|
||||
ApplicationManager.getApplication().executeOnPooledThread(asyncSetup);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@@ -520,14 +519,10 @@ public class VimPlugin implements BaseComponent, PersistentStateComponent<Elemen
|
||||
this.state.readData(element);
|
||||
};
|
||||
|
||||
// Disable multithreading for EAP release
|
||||
setup.run();
|
||||
/*
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
setup.run();
|
||||
} else {
|
||||
ApplicationManager.getApplication().executeOnPooledThread(setup);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user