File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/platform/workspaceChunkSearch/node Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -367,9 +367,13 @@ export class EmbeddingsChunkSearch extends Disposable implements IWorkspaceChunk
367
367
}
368
368
369
369
private async getExpandedClientSideIndexingStatus ( ) : Promise < 'enabled' | 'available' | 'disabled' > {
370
- const token = await this . _authService . getCopilotToken ( ) ;
371
- if ( ! token ?. isExpandedClientSideIndexingEnabled ( ) ) {
372
- return 'disabled' ;
370
+ try {
371
+ const token = await this . _authService . getCopilotToken ( ) ;
372
+ if ( ! token ?. isExpandedClientSideIndexingEnabled ( ) ) {
373
+ return 'disabled' ;
374
+ }
375
+ } catch {
376
+ // noop
373
377
}
374
378
375
379
const cache = this . _extensionContext . workspaceState . get < boolean | undefined > ( this . _hasPromptedExpandedIndexingKey ) ;
You can’t perform that action at this time.
0 commit comments