@@ -18,7 +18,6 @@ import { TelemetryCorrelationId } from '../../../util/common/telemetryCorrelatio
18
18
import { isLocation , isUri } from '../../../util/common/types' ;
19
19
import { raceCancellationError , timeout } from '../../../util/vs/base/common/async' ;
20
20
import { CancellationToken } from '../../../util/vs/base/common/cancellation' ;
21
- import { Lazy } from '../../../util/vs/base/common/lazy' ;
22
21
import { URI } from '../../../util/vs/base/common/uri' ;
23
22
import { IInstantiationService } from '../../../util/vs/platform/instantiation/common/instantiation' ;
24
23
import { ExtendedLanguageModelToolResult , LanguageModelPromptTsxPart , MarkdownString } from '../../../vscodeTypes' ;
@@ -47,7 +46,7 @@ export class GithubRepoTool implements ICopilotTool<GithubRepoToolParams> {
47
46
@IRunCommandExecutionService _commandService : IRunCommandExecutionService ,
48
47
@IInstantiationService private readonly _instantiationService : IInstantiationService ,
49
48
@IGithubCodeSearchService private readonly _githubCodeSearch : IGithubCodeSearchService ,
50
- @IGithubAvailableEmbeddingTypesService private readonly _availableEmbeddingTypesManager : Lazy < GithubAvailableEmbeddingTypesService > ,
49
+ @IGithubAvailableEmbeddingTypesService private readonly _availableEmbeddingTypesManager : GithubAvailableEmbeddingTypesService ,
51
50
@ITelemetryService private readonly _telemetryService : ITelemetryService ,
52
51
) { }
53
52
@@ -57,7 +56,7 @@ export class GithubRepoTool implements ICopilotTool<GithubRepoToolParams> {
57
56
throw new Error ( 'Invalid input. Could not parse repo' ) ;
58
57
}
59
58
60
- const embeddingType = await this . _availableEmbeddingTypesManager . value . getPreferredType ( false ) ;
59
+ const embeddingType = await this . _availableEmbeddingTypesManager . getPreferredType ( false ) ;
61
60
if ( ! embeddingType ) {
62
61
throw new Error ( 'No embedding models available' ) ;
63
62
}
0 commit comments