Skip to content

Commit 6dd5f16

Browse files
authored
Merge pull request #21223 from Veykril/push-xpmrpxnwpono
fix: Disable postcard use temporarily
2 parents e059280 + d659c2e commit 6dd5f16

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/proc-macro-api/src/process.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ impl ProcMacroServerProcess {
5858
if v.pre.as_str() == "nightly" { *v > VERSION } else { *v >= VERSION }
5959
});
6060

61-
let formats: &[_] = if has_working_format_flag {
61+
let formats: &[_] = if std::env::var_os("RUST_ANALYZER_USE_POSTCARD").is_some()
62+
&& has_working_format_flag
63+
{
6264
&[
6365
(Some("postcard-legacy"), Protocol::LegacyPostcard { mode: SpanMode::Id }),
6466
(Some("json-legacy"), Protocol::LegacyJson { mode: SpanMode::Id }),

0 commit comments

Comments
 (0)