Skip to content

Commit fd482d2

Browse files
authored
Merge pull request #12274 from microsoft/seanmcm/1_20_4_cherrypick
Updates for 1.20.4 (#12273)
2 parents 1ceae9d + 2fafd83 commit fd482d2

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

Extension/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# C/C++ for Visual Studio Code Changelog
22

3+
## Version 1.20.4: March 2, 2024
4+
### Bug Fixes
5+
* Fix a couple crashes.
6+
37
## Version 1.20.3: April 30, 2024
48
### Enhancement
59
* Log `cpptools` and `cpptool-srv` crash call stacks in the 'C/C++ Crash Call Stacks' Output channel for bug reporting (on x64 Linux and x64/arm64 Mac).

Extension/package.json

+1-1
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.20.3-main",
5+
"version": "1.20.4-main",
66
"publisher": "ms-vscode",
77
"icon": "LanguageCCPP_color_128x.png",
88
"readme": "README.md",

Extension/src/LanguageServer/extension.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,19 @@ function reportMacCrashes(): void {
962962
}
963963

964964
export function usesCrashHandler(): boolean {
965-
return process.platform !== "win32" && (process.platform === "darwin" || os.arch() === "x64");
965+
if (os.platform() === "darwin") {
966+
if (os.arch() === "arm64") {
967+
return true;
968+
} else {
969+
const releaseParts: string[] = os.release().split(".");
970+
if (releaseParts.length >= 1) {
971+
// Avoid potentially intereferring with the older macOS crash handler.
972+
return parseInt(releaseParts[0]) < 19;
973+
}
974+
return true;
975+
}
976+
}
977+
return os.platform() !== "win32" && os.arch() === "x64";
966978
}
967979

968980
export function watchForCrashes(crashDirectory: string): void {

0 commit comments

Comments
 (0)