mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Add editor options for plain text mode and to disable block folding to
workaround rendering speed issues in CodeMirror with very large scripts. Fixes #4631. Re-arrange editor options in the Preferences dialogue to tidy things up.
This commit is contained in:
committed by
Dave Page
parent
5e54f20578
commit
1c2ba72f02
@@ -1792,14 +1792,7 @@ define([
|
||||
foldOptions: {
|
||||
widget: '\u2026',
|
||||
},
|
||||
foldGutter: {
|
||||
rangeFinder: CodeMirror.fold.combine(
|
||||
CodeMirror.pgadminBeginRangeFinder,
|
||||
CodeMirror.pgadminIfRangeFinder,
|
||||
CodeMirror.pgadminLoopRangeFinder,
|
||||
CodeMirror.pgadminCaseRangeFinder
|
||||
),
|
||||
},
|
||||
foldGutter: true,
|
||||
gutters: [
|
||||
'CodeMirror-linenumbers', 'CodeMirror-foldgutter', 'breakpoints',
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user