Skip to content

Commit

Permalink
Updates for 1.20.4 (#12273)
Browse files Browse the repository at this point in the history
* Don't use the crash handler on macOS < 19.
* Update version and changelog.
  • Loading branch information
sean-mcmanus committed May 2, 2024
1 parent 1ceae9d commit 2fafd83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# C/C++ for Visual Studio Code Changelog

## Version 1.20.4: March 2, 2024
### Bug Fixes
* Fix a couple crashes.

## Version 1.20.3: April 30, 2024
### Enhancement
* 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).
Expand Down
2 changes: 1 addition & 1 deletion Extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cpptools",
"displayName": "C/C++",
"description": "C/C++ IntelliSense, debugging, and code browsing.",
"version": "1.20.3-main",
"version": "1.20.4-main",
"publisher": "ms-vscode",
"icon": "LanguageCCPP_color_128x.png",
"readme": "README.md",
Expand Down
14 changes: 13 additions & 1 deletion Extension/src/LanguageServer/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,19 @@ function reportMacCrashes(): void {
}

export function usesCrashHandler(): boolean {
return process.platform !== "win32" && (process.platform === "darwin" || os.arch() === "x64");
if (os.platform() === "darwin") {
if (os.arch() === "arm64") {
return true;
} else {
const releaseParts: string[] = os.release().split(".");
if (releaseParts.length >= 1) {
// Avoid potentially intereferring with the older macOS crash handler.
return parseInt(releaseParts[0]) < 19;
}
return true;
}
}
return os.platform() !== "win32" && os.arch() === "x64";
}

export function watchForCrashes(crashDirectory: string): void {
Expand Down

0 comments on commit 2fafd83

Please sign in to comment.