(htmlfile)
| 623 | } |
| 624 | |
| 625 | private async addSingleFile(htmlfile): Promise<void> { |
| 626 | try { |
| 627 | await this.askForOverwriteAndDo(htmlfile.name); |
| 628 | |
| 629 | return new Promise(resolve => { |
| 630 | const fr = new FileReader(); |
| 631 | fr.onload = () => { |
| 632 | this.multifileService.addNewTextFile(htmlfile.name, fr.result?.toString() || ''); |
| 633 | this.refresh(); |
| 634 | resolve(); |
| 635 | }; |
| 636 | fr.readAsText(htmlfile); |
| 637 | }); |
| 638 | } catch { |
| 639 | // expected when user says no |
| 640 | } |
| 641 | } |
| 642 | |
| 643 | private numberUsedLines() { |
| 644 | if (_.any(this.busyCompilers)) return; |
no test coverage detected