Skip to content

Commit ff2fb7e

Browse files
authored
Merge pull request #13919 from microsoft/seanmcm/1_26_5_release
Cherry-pick for 1.26.5
2 parents af326bd + a1fa61e commit ff2fb7e

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Extension/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# C/C++ for Visual Studio Code Changelog
22

3+
## Version 1.26.5: September 10, 2025
4+
### Bug Fix
5+
* Fix extension activation getting stuck by GitHub Copilot activation. [#13914](https://github.com/microsoft/vscode-cpptools/issues/13914)
6+
* Thank you for the contribution. [@dbaeumer (Dirk Bäumer)](https://github.com/dbaeumer) [PR #13918](https://github.com/microsoft/vscode-cpptools/pull/13918)
7+
38
## Version 1.26.4: September 8, 2025
9+
### Enhancement
410
* Update GitHub Copilot APIs. [PR #13877](https://github.com/microsoft/vscode-cpptools/pull/13877)
511
* Thank you for the contribution. [@dbaeumer (Dirk Bäumer)](https://github.com/dbaeumer)
612

Extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "cpptools",
33
"displayName": "C/C++",
44
"description": "C/C++ IntelliSense, debugging, and code browsing.",
5-
"version": "1.26.4-main",
5+
"version": "1.26.5-main",
66
"publisher": "ms-vscode",
77
"icon": "LanguageCCPP_color_128x.png",
88
"readme": "README.md",

Extension/src/LanguageServer/copilotProviders.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,14 @@ export async function getCopilotChatApi(): Promise<CopilotContextProviderAPI | u
159159
let exports: CopilotChatApi | undefined;
160160
if (!copilotExtension.isActive) {
161161
try {
162-
exports = await copilotExtension.activate();
162+
exports = await Promise.race([
163+
copilotExtension.activate(),
164+
new Promise<undefined>(resolve => {
165+
setTimeout(() => {
166+
resolve(undefined);
167+
}, 3000);
168+
})
169+
]);
163170
} catch {
164171
return undefined;
165172
}

0 commit comments

Comments
 (0)