We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7d5aaf commit 2f0efe9Copy full SHA for 2f0efe9
Extension/src/LanguageServer/copilotProviders.ts
@@ -159,7 +159,14 @@ export async function getCopilotChatApi(): Promise<CopilotContextProviderAPI | u
159
let exports: CopilotChatApi | undefined;
160
if (!copilotExtension.isActive) {
161
try {
162
- exports = await copilotExtension.activate();
+ exports = await Promise.race([
163
+ copilotExtension.activate(),
164
+ new Promise<undefined>(resolve => {
165
+ setTimeout(() => {
166
+ resolve(undefined);
167
+ }, 3000);
168
+ })
169
+ ]);
170
} catch {
171
return undefined;
172
}
0 commit comments