Skip to content

Commit

Permalink
LSP: Submit the full backtrace to the crash reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ogoffart committed Jan 10, 2025
1 parent e34c193 commit 57f42c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editors/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,11 +179,13 @@ function startClient(
const location = new vscode.TelemetryTrustedValue(
lines[1],
);
const message = lines.slice(2).join("\n");
const backtrace = lines[2];
const message = lines.slice(3).join("\n");
telemetryLogger.logError("lsp-panic", {
version: version,
location: location,
message: message,
backtrace: backtrace,
});
vscode.workspace.fs.delete(slint_lsp_panic_file);
});
Expand Down
1 change: 1 addition & 0 deletions tools/lsp/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ fn main() {
} else {
writeln!(file, "unknown location")
};
let _ = writeln!(file, "{:?}", std::backtrace::Backtrace::force_capture());
let _ = writeln!(file, "{info}");
}
default_hook(info);
Expand Down

0 comments on commit 57f42c0

Please sign in to comment.