fix: Disable postcard use temporarily

This commit is contained in:
Lukas Wirth 2025-12-07 14:51:56 +01:00 committed by Laurențiu Nicola
parent 1b6e21e163
commit 51da96d7d2

View file

@ -58,7 +58,9 @@ impl ProcMacroServerProcess {
if v.pre.as_str() == "nightly" { *v > VERSION } else { *v >= VERSION }
});
let formats: &[_] = if has_working_format_flag {
let formats: &[_] = if std::env::var_os("RUST_ANALYZER_USE_POSTCARD").is_some()
&& has_working_format_flag
{
&[
(Some("postcard-legacy"), Protocol::LegacyPostcard { mode: SpanMode::Id }),
(Some("json-legacy"), Protocol::LegacyJson { mode: SpanMode::Id }),