fix: change chat response editor type to 'Untyped' (fixes #832)

This commit is contained in:
Carl-Robert Linnupuu 2025-02-03 23:51:04 +00:00
parent 169496ab06
commit 2d7a1d73e3

View file

@ -40,9 +40,10 @@ object EditorUtil {
)
val editorFactory = EditorFactory.getInstance()
val document = editorFactory.createDocument(code)
val editor= editorFactory
.createEditor(document, project, lightVirtualFile, true, EditorKind.MAIN_EDITOR)
(editor as EditorEx).backgroundColor = service<EditorColorsManager>().globalScheme.defaultBackground
val editor = editorFactory
.createEditor(document, project, lightVirtualFile, true, EditorKind.UNTYPED)
(editor as EditorEx).backgroundColor =
service<EditorColorsManager>().globalScheme.defaultBackground
return editor
}