Skip to content

Commit 1e19dd9

Browse files
authored
Merge pull request #13921 from microsoft/main
Merge for 1.27.5
2 parents 9f40774 + c101b67 commit 1e19dd9

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

Extension/CHANGELOG.md

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

3+
## Version 1.27.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.27.4: September 9, 2025
49
### Bug Fixes
510
* Fix crash recovery. [#13838](https://github.com/microsoft/vscode-cpptools/issues/13838)
@@ -50,7 +55,13 @@
5055
* Fix activation failing if the `c_cpp_properties.json` exists but fails to be opened. [#13829](https://github.com/microsoft/vscode-cpptools/issues/13829)
5156
* Fix an IntelliSense bug that could cause incorrect string lengths to be reported for string literals in files that use certain file encodings.
5257

58+
## Version 1.26.5: September 10, 2025
59+
### Bug Fix
60+
* Fix extension activation getting stuck by GitHub Copilot activation. [#13914](https://github.com/microsoft/vscode-cpptools/issues/13914)
61+
* Thank you for the contribution. [@dbaeumer (Dirk Bäumer)](https://github.com/dbaeumer) [PR #13918](https://github.com/microsoft/vscode-cpptools/pull/13918)
62+
5363
## Version 1.26.4: September 9, 2025
64+
### Enhancement
5465
* Update GitHub Copilot APIs. [PR #13877](https://github.com/microsoft/vscode-cpptools/pull/13877)
5566
* Thank you for the contribution. [@dbaeumer (Dirk Bäumer)](https://github.com/dbaeumer)
5667

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.27.4-main",
5+
"version": "1.27.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)