Skip to content

Commit

Permalink
fix: change chat response editor type to 'Untyped' (fixes #832)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlrobertoh committed Feb 4, 2025
1 parent 169496a commit 2d7a1d7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/kotlin/ee/carlrobert/codegpt/util/EditorUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2d7a1d7

Please sign in to comment.