mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
EDU-169 Do not expand task window on typing right after the end of the window
Fixed for the end of file inserting new line
This commit is contained in:
@@ -96,6 +96,7 @@ public class PyCharmEduInitialConfigurator {
|
||||
|
||||
@NonNls private static final String CONFIGURED = "PyCharmEDU.InitialConfiguration";
|
||||
@NonNls private static final String CONFIGURED_V1 = "PyCharmEDU.InitialConfiguration.V1";
|
||||
@NonNls private static final String CONFIGURED_V2 = "PyCharmEDU.InitialConfiguration.V2";
|
||||
|
||||
private static final Set<String> UNRELATED_TIPS = Sets.newHashSet("LiveTemplatesDjango.html", "TerminalOpen.html",
|
||||
"Terminal.html", "ConfiguringTerminal.html");
|
||||
@@ -142,6 +143,11 @@ public class PyCharmEduInitialConfigurator {
|
||||
FileTypeManager fileTypeManager,
|
||||
final ProjectManagerEx projectManager) {
|
||||
final UISettings uiSettings = UISettings.getInstance();
|
||||
if (!propertiesComponent.getBoolean(CONFIGURED_V2)) {
|
||||
EditorSettingsExternalizable editorSettings = EditorSettingsExternalizable.getInstance();
|
||||
editorSettings.setEnsureNewLineAtEOF(true);
|
||||
propertiesComponent.setValue(CONFIGURED_V2, true);
|
||||
}
|
||||
if (!propertiesComponent.getBoolean(CONFIGURED_V1)) {
|
||||
patchMainMenu();
|
||||
uiSettings.SHOW_NAVIGATION_BAR = false;
|
||||
|
||||
Reference in New Issue
Block a user