(
id: number | string,
compiler: CompilerInfo | null,
options: unknown,
editorId: number,
treeId: number,
)
| 510 | } |
| 511 | |
| 512 | override onCompiler( |
| 513 | id: number | string, |
| 514 | compiler: CompilerInfo | null, |
| 515 | options: unknown, |
| 516 | editorId: number, |
| 517 | treeId: number, |
| 518 | ) { |
| 519 | if (!compiler) return; |
| 520 | options = options || ''; |
| 521 | const name = compiler.name + ' ' + options; |
| 522 | this.compilers[id] = { |
| 523 | id: id, |
| 524 | name: name, |
| 525 | options: options, |
| 526 | editorId: editorId, |
| 527 | treeId: treeId, |
| 528 | compiler: compiler, |
| 529 | }; |
| 530 | if (this.lhs.id === undefined) { |
| 531 | this.lhs.compiler = this.compilers[id]; |
| 532 | this.lhs.id = id; |
| 533 | this.onDiffSelect(id); |
| 534 | } |
| 535 | if (this.rhs.id === undefined) { |
| 536 | this.rhs.compiler = this.compilers[id]; |
| 537 | this.rhs.id = id; |
| 538 | this.onDiffSelect(id); |
| 539 | } |
| 540 | this.updateCompilers(); |
| 541 | } |
| 542 | |
| 543 | onExecutor(id: number, compiler: CompilerInfo | null, options: string, editorId: number, treeId: number) { |
| 544 | this.onCompiler(id + '_exec', compiler, options, editorId, treeId); |
no test coverage detected