Merge pull request #21223 from Veykril/push-xpmrpxnwpono

fix: Disable postcard use temporarily
This commit is contained in:
Lukas Wirth 2025-12-07 14:02:19 +00:00 committed by GitHub
commit 6dd5f16f07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 }),