MCPcopy Index your code
hub / github.com/microsoft/vscode-js-debug / assertResolves

Function assertResolves

src/ui/debugLinkUI.ts:21–26  ·  view source on GitHub ↗
(hostname: string, timeout = 1000)

Source from the content-addressed store, hash-verified

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

Callers 1

getPossibleUrlFunction · 0.85

Calls 2

delayFunction · 0.90
lookupMethod · 0.65

Tested by

no test coverage detected