mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
RIDER-81825 fold new line symbols in sandbox editors
GitOrigin-RevId: 41002ca4327321340892f941d754c05a12ccf416
This commit is contained in:
committed by
intellij-monorepo-bot
parent
01b9d2dbc0
commit
05768d000f
@@ -3,6 +3,7 @@ package com.intellij.xdebugger.evaluation;
|
||||
|
||||
import com.intellij.lang.Language;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.fileTypes.FileType;
|
||||
import com.intellij.openapi.fileTypes.LanguageFileType;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -37,6 +38,8 @@ public abstract class XDebuggerEditorsProvider {
|
||||
@NotNull EvaluationMode mode) {
|
||||
return createDocument(project, expression.getExpression(), sourcePosition, mode);
|
||||
}
|
||||
|
||||
public void afterEditorCreated(@Nullable Editor editor) {}
|
||||
|
||||
@NotNull
|
||||
public Collection<Language> getSupportedLanguages(@NotNull Project project, @Nullable XSourcePosition sourcePosition) {
|
||||
|
||||
@@ -333,7 +333,7 @@ public abstract class XDebuggerEditorBase implements Expandable {
|
||||
}
|
||||
}
|
||||
|
||||
protected static void foldNewLines(EditorEx editor) {
|
||||
public static void foldNewLines(EditorEx editor) {
|
||||
editor.getColorsScheme().setAttributes(EditorColors.FOLDED_TEXT_ATTRIBUTES, null);
|
||||
editor.reinitSettings();
|
||||
FoldingModelEx foldingModel = editor.getFoldingModel();
|
||||
|
||||
@@ -130,6 +130,7 @@ public class XDebuggerExpressionComboBox extends XDebuggerEditorBase {
|
||||
.inSmartMode(getProject())
|
||||
.finishOnUiThread(ModalityState.any(), document -> {
|
||||
myEditor.getEditorTextField().setNewDocumentAndFileType(getFileType(text), document);
|
||||
getEditorsProvider().afterEditorCreated(getEditor());
|
||||
})
|
||||
.coalesceBy(this)
|
||||
.submit(AppExecutorUtil.getAppExecutorService());
|
||||
|
||||
Reference in New Issue
Block a user