MCPcopy Create free account
hub / github.com/Exafunction/codeium-chrome / getLanguageServerUrl

Function getLanguageServerUrl

src/serviceWorker.ts:162–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160}
161
162async function getLanguageServerUrl(): Promise<string> {
163 const user = await getStorageItem('user');
164 const userPortalUrl = user?.userPortalUrl;
165 if (userPortalUrl === undefined || userPortalUrl === '') {
166 return 'https://server.codeium.com';
167 }
168 return `${userPortalUrl}/_route/language_server`;
169}

Callers 1

serviceWorker.tsFile · 0.85

Calls 1

getStorageItemFunction · 0.90

Tested by

no test coverage detected