(hostname: string, timeout = 1000)
| 19 | import { ExtensionContext, IExtensionContribution } from '../ioc-extras'; |
| 20 | |
| 21 | async function assertResolves(hostname: string, timeout = 1000) { |
| 22 | return Promise.race([ |
| 23 | dns.lookup(hostname), |
| 24 | delay(timeout), |
| 25 | ]); |
| 26 | } |
| 27 | |
| 28 | async function getPossibleUrl(link: string, requirePort: boolean): Promise<string | undefined> { |
| 29 | if (!link) { |
no test coverage detected