File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -518,16 +518,18 @@ export class CaptureChoiceBuilder extends ChoiceBuilder {
518518 ? "Not used when inserting at end of section."
519519 : blankLineModeDesc ,
520520 )
521- . addDropdown ( ( dropdown ) => {
522- dropdown
523- . addOption ( "auto" , "Auto (headings only)" )
524- . addOption ( "skip" , "Always skip" )
525- . addOption ( "none" , "Never skip" )
526- . setValue ( this . choice . insertAfter . blankLineAfterMatchMode )
527- . onChange ( ( value ) => {
528- this . choice . insertAfter . blankLineAfterMatchMode = value as
529- | "auto"
530- | "skip"
521+ . addDropdown ( ( dropdown ) => {
522+ dropdown
523+ . addOption ( "auto" , "Auto (headings only)" )
524+ . addOption ( "skip" , "Always skip" )
525+ . addOption ( "none" , "Never skip" )
526+ . setValue (
527+ this . choice . insertAfter ?. blankLineAfterMatchMode ?? "auto" ,
528+ )
529+ . onChange ( ( value ) => {
530+ this . choice . insertAfter . blankLineAfterMatchMode = value as
531+ | "auto"
532+ | "skip"
531533 | "none" ;
532534 } ) ;
533535 dropdown . setDisabled ( insertAtEndEnabled ) ;
You can’t perform that action at this time.
0 commit comments