(
rawLocation: RawLocation,
)
| 751 | } |
| 752 | |
| 753 | public async rawLocationToUiLocation( |
| 754 | rawLocation: RawLocation, |
| 755 | ): Promise<IPreferredUiLocation | undefined> { |
| 756 | const script = rawLocation.scriptId |
| 757 | ? await this.getScriptByIdOrWait(rawLocation.scriptId) |
| 758 | : undefined; |
| 759 | if (!script) { |
| 760 | return; |
| 761 | } |
| 762 | |
| 763 | return this._sourceContainer.preferredUiLocation({ |
| 764 | ...rawLocation, |
| 765 | source: await script.source, |
| 766 | }); |
| 767 | } |
| 768 | |
| 769 | /** |
| 770 | * Gets a script ID if it exists, or waits to up maxTime. In rare cases we |
no test coverage detected