From 20d1f424a63f5540287f42acc01fd014d7510eac Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Thu, 13 Feb 2025 11:37:26 -0800 Subject: [PATCH 1/2] Update changelog and version for 1.24.1. (#13276) --- Extension/CHANGELOG.md | 7 ++++++- Extension/package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index e3f673100..5222340c6 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -1,6 +1,11 @@ # C/C++ for Visual Studio Code Changelog -## Version 1.24.0: Febrary 11, 2025 +## Version 1.24.1: February 13, 2025 +### Bug Fixes +* Fix random IntelliSense process crashes on Linux/macOS when `C_Cpp.intelliSenseCacheSize` is > 0. [#12668](https://github.com/microsoft/vscode-cpptools/issues/12668) +* Fix a crash when processing Copilot snippets. + +## Version 1.24.0: February 11, 2025 ### New Feature * Add experimental support for Copilot descriptions in hover tooltips, controlled by the `C_Cpp.copilotHover` setting. This feature is currently off by default and may be subject to A/B experimentation. To opt-out of Copilot Hover experiments, set `C_Cpp.copilotHover` to `disabled`. diff --git a/Extension/package.json b/Extension/package.json index 3625a2107..8a5b95b62 100644 --- a/Extension/package.json +++ b/Extension/package.json @@ -2,7 +2,7 @@ "name": "cpptools", "displayName": "C/C++", "description": "C/C++ IntelliSense, debugging, and code browsing.", - "version": "1.24.0-main", + "version": "1.24.1-main", "publisher": "ms-vscode", "icon": "LanguageCCPP_color_128x.png", "readme": "README.md", From 44406cea7ce913bf38406f934ad560acefbe8d98 Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Thu, 13 Feb 2025 14:33:49 -0800 Subject: [PATCH 2/2] Fix handling of "Could not open input path" when calling c++filt (#13279) * Fix handling of "Could not open input path" when calling c++filt --- Extension/CHANGELOG.md | 1 + Extension/src/LanguageServer/extension.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Extension/CHANGELOG.md b/Extension/CHANGELOG.md index 5222340c6..abdc33131 100644 --- a/Extension/CHANGELOG.md +++ b/Extension/CHANGELOG.md @@ -4,6 +4,7 @@ ### Bug Fixes * Fix random IntelliSense process crashes on Linux/macOS when `C_Cpp.intelliSenseCacheSize` is > 0. [#12668](https://github.com/microsoft/vscode-cpptools/issues/12668) * Fix a crash when processing Copilot snippets. +* Fix a crash when using Copilot hover. ## Version 1.24.0: February 11, 2025 ### New Feature diff --git a/Extension/src/LanguageServer/extension.ts b/Extension/src/LanguageServer/extension.ts index 58af8a4b0..11c7e6576 100644 --- a/Extension/src/LanguageServer/extension.ts +++ b/Extension/src/LanguageServer/extension.ts @@ -1224,7 +1224,7 @@ async function handleCrashFileRead(crashDirectory: string, crashFile: string, cr if (ret?.output === funcStr) { ret = await util.spawnChildProcess(filtPath, [funcStr], undefined, true).catch(logAndReturn.undefined); } - if (ret !== undefined && ret.succeeded) { + if (ret !== undefined && ret.succeeded && !ret.output.startsWith("Could not open input file")) { funcStr = ret.output; funcStr = funcStr.replace(/std::(?:__1|__cxx11)/g, "std"); // simplify std namespaces. funcStr = funcStr.replace(/std::basic_/g, "std::");