Auto merge of #149799 - lnicola:backport-disable-postcard, r=lnicola
[beta] Backport rust-analyzer proc macro server "disable postcard use temporarily"
This commit is contained in:
commit
eb937a3172
1 changed files with 3 additions and 1 deletions
|
|
@ -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 }),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue