mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-19 07:54:46 +00:00
feat: show line numbers for diff type editors
This commit is contained in:
parent
8f016b73ff
commit
611a30255d
1 changed files with 5 additions and 4 deletions
|
|
@ -61,18 +61,19 @@ object EditorFactory {
|
|||
editor.permanentHeaderComponent = headerComponent
|
||||
editor.headerComponent = null
|
||||
|
||||
val diffKind = editor.editorKind == EditorKind.DIFF
|
||||
editor.settings.apply {
|
||||
additionalColumnsCount = 0
|
||||
additionalLinesCount = 0
|
||||
isAdditionalPageAtBottom = false
|
||||
isVirtualSpace = false
|
||||
isUseSoftWraps = false
|
||||
isLineNumbersShown = false
|
||||
isLineMarkerAreaShown = editor.editorKind == EditorKind.DIFF
|
||||
isLineNumbersShown = diffKind
|
||||
isLineMarkerAreaShown = diffKind
|
||||
}
|
||||
editor.gutterComponentEx.apply {
|
||||
isVisible = editor.editorKind == EditorKind.DIFF
|
||||
parent.isVisible = editor.editorKind == EditorKind.DIFF
|
||||
isVisible = diffKind
|
||||
parent.isVisible = diffKind
|
||||
}
|
||||
|
||||
editor.contentComponent.border = JBUI.Borders.emptyLeft(4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue