This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
plugins/plugin-client-common/src/components Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export interface Options {
21
21
readOnly ?: boolean
22
22
simple ?: boolean
23
23
fontSize ?: number
24
+ language ?: string
24
25
}
25
26
26
27
export default ( options : Options ) : editor . IEditorConstructionOptions => ( {
@@ -42,7 +43,7 @@ export default (options: Options): editor.IEditorConstructionOptions => ({
42
43
43
44
// simplify the UI?
44
45
links : ! options . simple ,
45
- folding : ! options . simple ,
46
+ folding : ! options . simple || ! / m a r k d o w n | t e x t | s h e l l / i . test ( options . language ) ,
46
47
lineNumbers : options . simple ? 'off' : 'on' ,
47
48
wordWrap : options . simple ? 'on' : undefined ,
48
49
lineDecorationsWidth : options . simple ? 0 : undefined
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ export abstract class InputProvider<S extends State = State> extends React.PureC
265
265
contentType = { _ . contentType }
266
266
className = "kui--source-ref-editor kui--inverted-color-context"
267
267
fontSize = { 12 }
268
- simple = { this . props . isPartOfMiniSplit }
268
+ simple = { this . props . isPartOfMiniSplit || this . props . isWidthConstrained }
269
269
/>
270
270
</ ExpandableSection >
271
271
)
You can’t perform that action at this time.
0 commit comments