()
| 603 | this.pendingInterpretersChangeEventTriggers.clear(); |
| 604 | } |
| 605 | private async getApi(): Promise<PythonExtensionApi | undefined> { |
| 606 | if (!this.extensionChecker.isPythonExtensionInstalled) { |
| 607 | return; |
| 608 | } |
| 609 | if (!this.apiPromise) { |
| 610 | this.apiPromise = this.apiProvider.getNewApi(); |
| 611 | } |
| 612 | return this.apiPromise; |
| 613 | } |
| 614 | |
| 615 | private hookupOnDidChangeInterpreterEvent() { |
| 616 | // Only do this once. |
no test coverage detected