mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Temp fix for slow onEnter issue
The issue was windows specific -- cancellation caused collection of bracktraces at some point, and that was slow on windows. The proper fix here is to make sure that we don't collect bracktraces unnecessary (which we currently do due to failure), but, as a temporary fix, let's just not force their collection in the first place!
This commit is contained in:
parent
a3a03b65dc
commit
d32e15cae6
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ use ra_lsp_server::{Result, InitializationOptions};
|
||||||
use ra_prof;
|
use ra_prof;
|
||||||
|
|
||||||
fn main() -> Result<()> {
|
fn main() -> Result<()> {
|
||||||
std::env::set_var("RUST_BACKTRACE", "short");
|
// re-enable and verify on windows after #1400
|
||||||
|
// std::env::set_var("RUST_BACKTRACE", "short");
|
||||||
let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All);
|
let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All);
|
||||||
match std::env::var("RA_LOG_DIR") {
|
match std::env::var("RA_LOG_DIR") {
|
||||||
Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,
|
Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?,
|
||||||
|
|
Loading…
Reference in a new issue