MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / resolveExistingServiceUrl

Function resolveExistingServiceUrl

packages/vscode-extension/extension.js:71–78  ·  view source on GitHub ↗
(preferredUrl)

Source from the content-addressed store, hash-verified

69}
70
71async function resolveExistingServiceUrl(preferredUrl) {
72 for (const serviceUrl of serviceUrlCandidates(preferredUrl)) {
73 if (await isServerHealthy(serviceUrl)) {
74 return serviceUrl;
75 }
76 }
77 return "";
78}
79
80function serviceUrlCandidates(preferredUrl) {
81 if (sameOrigin(preferredUrl, DEFAULT_SERVICE_URL)) {

Callers 1

resolveSimulatorUrlFunction · 0.85

Calls 2

serviceUrlCandidatesFunction · 0.85
isServerHealthyFunction · 0.85

Tested by

no test coverage detected