Skip to content

Commit 777af10

Browse files
committed
Fix bad merge.
1 parent ca3dcdb commit 777af10

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Extension/src/LanguageServer/copilotCompletionContextProvider.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -535,18 +535,4 @@ ${copilotCompletionContext?.areSnippetsMissing ? "(missing code snippets)" : ""}
535535
return undefined;
536536
}
537537
}
538-
539-
private async installContextProvider(copilotAPI: CopilotContextProviderAPI, contextProvider: ContextProvider<SupportedContextItem>): Promise<{ hasGetContextProviderAPI: boolean; hasAPI: boolean }> {
540-
const hasGetContextProviderAPI = typeof copilotAPI.getContextProviderAPI === 'function';
541-
if (hasGetContextProviderAPI) {
542-
const contextAPI = await copilotAPI.getContextProviderAPI("v1");
543-
if (contextAPI) {
544-
this.contextProviderDisposables = this.contextProviderDisposables ?? [];
545-
this.contextProviderDisposables.push(contextAPI.registerContextProvider(contextProvider));
546-
}
547-
return { hasGetContextProviderAPI, hasAPI: contextAPI !== undefined };
548-
} else {
549-
return { hasGetContextProviderAPI: false, hasAPI: false };
550-
}
551-
}
552538
}

0 commit comments

Comments
 (0)