@@ -159,7 +159,7 @@ export class BricksCodeParser {
159159 replacedCode = replacedCode . replace ( variable . line , variable . replacedLine ) ;
160160 }
161161 config . preparedCode = replacedCode ;
162- this . extendCodeForRecordIde ( config , forIde ) ;
162+ // this.extendCodeForRecordIde(config, forIde);
163163 this . extendCodeForLabelMapping ( config , executionTypeFilter ) ;
164164 config . codeFullyPrepared = this . variables . every ( v => v . optional || ( v . values . length > 0 && v . values . every ( va => va != null ) ) ) ;
165165 config . canAccept = config . codeFullyPrepared && ! this . nameTaken && this . functionName != "" ;
@@ -357,18 +357,18 @@ export class BricksCodeParser {
357357 return - 1 ;
358358 }
359359
360- private static extendCodeForRecordIde ( config : BricksIntegratorConfig , forIde : string | boolean = false ) {
361- if ( ! forIde ) return ;
362- if ( this . functionName == null || this . functionName == "@@unknown@@" ) return ;
363- const isExtractor = config . api . data . data . attributes . moduleType == "extractor" ;
364- let printReturn = "\n\nprint(\"Record: \", record) \nprint(\"Result: \", " ;
365- if ( isExtractor ) {
366- printReturn += "[v for v in " + this . functionName + "(record)])"
367- } else {
368- printReturn += this . functionName + "(record))"
369- }
370- config . preparedCode += printReturn ;
371- }
360+ // private static extendCodeForRecordIde(config: BricksIntegratorConfig, forIde: string | boolean = false) {
361+ // if (!forIde) return;
362+ // if (this.functionName == null || this.functionName == "@@unknown@@") return;
363+ // const isExtractor = config.api.data.data.attributes.moduleType == "extractor";
364+ // let printReturn = "\n\nprint(\"Record: \", record) \nprint(\"Result: \", ";
365+ // if (isExtractor) {
366+ // printReturn += "[v for v in " + this.functionName + "(record)])"
367+ // } else {
368+ // printReturn += this.functionName + "(record))"
369+ // }
370+ // config.preparedCode += printReturn;
371+ // }
372372
373373 private static collectGlobalComment ( labelingTaskId : string = null , labelingTasks : any [ ] = null ) : string [ ] {
374374 const lines = this . baseCode . split ( "\n" ) ;
0 commit comments