refactor: clean up code
This commit is contained in:
parent
1adbd9a456
commit
a830dca11d
1 changed files with 3 additions and 7 deletions
|
|
@ -177,13 +177,9 @@ export class CompletionProvider {
|
|||
const extraSnippets = await this._getExtraSnippets(helper);
|
||||
|
||||
const [snippets, diff, workspaceDirs] = await Promise.all([
|
||||
await aggregateSnippets(
|
||||
helper,
|
||||
extraSnippets,
|
||||
this.contextRetrievalService,
|
||||
),
|
||||
await this.ide.getDiff(true),
|
||||
await this.ide.getWorkspaceDirs(),
|
||||
aggregateSnippets(helper, extraSnippets, this.contextRetrievalService),
|
||||
this.ide.getDiff(true),
|
||||
this.ide.getWorkspaceDirs(),
|
||||
]);
|
||||
|
||||
const { prompt, prefix, suffix, completionOptions } = renderPrompt({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue