Skip to content

Commit

Permalink
Wait for client config
Browse files Browse the repository at this point in the history
  • Loading branch information
RXminuS committed Oct 17, 2024
1 parent da092ae commit 5b341e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/shared/src/sourcegraph-api/clientConfig.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Observable, interval, map } from 'observable-fns'
import { type Observable, interval, map } from 'observable-fns'
import semver from 'semver'
import { authStatus } from '../auth/authStatus'
import { editorWindowIsFocused } from '../editor/editorState'
import { logDebug, logError } from '../logger'
import {
NEVER,
debounceTime,
distinctUntilChanged,
filter,
Expand Down Expand Up @@ -85,7 +86,7 @@ export class ClientConfigSingleton {
startWith(undefined),
switchMap(() => promiseFactoryToObservable(signal => this.fetchConfig(signal)))
)
: Observable.of(undefined)
: NEVER
),
map(value => (isError(value) ? undefined : value)),
distinctUntilChanged()
Expand Down

0 comments on commit 5b341e5

Please sign in to comment.