@@ -681,13 +681,22 @@ export namespace RunOnOptions {
681681}
682682
683683export namespace RunOptions {
684+ const properties : MetaData < Tasks . RunOptions , void > [ ] = [ { property : 'reevaluateOnRerun' } , { property : 'runOn' } , { property : 'instanceLimit' } ] ;
684685 export function fromConfiguration ( value : RunOptionsConfig | undefined ) : Tasks . RunOptions {
685686 return {
686687 reevaluateOnRerun : value ? value . reevaluateOnRerun : true ,
687688 runOn : value ? RunOnOptions . fromString ( value . runOn ) : Tasks . RunOnOptions . default ,
688689 instanceLimit : value ? value . instanceLimit : 1
689690 } ;
690691 }
692+
693+ export function assignProperties ( target : Tasks . RunOptions , source : Tasks . RunOptions | undefined ) : Tasks . RunOptions {
694+ return _assignProperties ( target , source , properties ) ! ;
695+ }
696+
697+ export function fillProperties ( target : Tasks . RunOptions , source : Tasks . RunOptions | undefined ) : Tasks . RunOptions {
698+ return _fillProperties ( target , source , properties ) ! ;
699+ }
691700}
692701
693702interface ParseContext {
@@ -1609,6 +1618,7 @@ namespace CustomTask {
16091618 result . command . presentation = CommandConfiguration . PresentationOptions . assignProperties (
16101619 result . command . presentation ! , configuredProps . configurationProperties . presentation ) ! ;
16111620 result . command . options = CommandOptions . assignProperties ( result . command . options , configuredProps . configurationProperties . options ) ;
1621+ result . runOptions = RunOptions . assignProperties ( result . runOptions , configuredProps . runOptions ) ;
16121622
16131623 let contributedConfigProps : Tasks . ConfigurationProperties = contributedTask . configurationProperties ;
16141624 fillProperty ( resultConfigProps , contributedConfigProps , 'group' ) ;
@@ -1621,6 +1631,7 @@ namespace CustomTask {
16211631 result . command . presentation = CommandConfiguration . PresentationOptions . fillProperties (
16221632 result . command . presentation ! , contributedConfigProps . presentation ) ! ;
16231633 result . command . options = CommandOptions . fillProperties ( result . command . options , contributedConfigProps . options ) ;
1634+ result . runOptions = RunOptions . fillProperties ( result . runOptions , contributedTask . runOptions ) ;
16241635
16251636 if ( contributedTask . hasDefinedMatchers === true ) {
16261637 result . hasDefinedMatchers = true ;
0 commit comments