diff options
author | Aleksey Kladov <[email protected]> | 2019-06-13 19:17:46 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-06-13 19:29:44 +0100 |
commit | d32e15cae628423f8b5ebda67daf6bef9efddd31 (patch) | |
tree | f0e826f03f96683c2612fe2d45c37985913d5bcd /crates/ra_lsp_server/src | |
parent | a3a03b65dca9dc174bd58cd3d877ede18fc58637 (diff) |
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!
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs index a0df32dde..3c3e8b5b0 100644 --- a/crates/ra_lsp_server/src/main.rs +++ b/crates/ra_lsp_server/src/main.rs | |||
@@ -6,7 +6,8 @@ use ra_lsp_server::{Result, InitializationOptions}; | |||
6 | use ra_prof; | 6 | use ra_prof; |
7 | 7 | ||
8 | fn main() -> Result<()> { | 8 | fn main() -> Result<()> { |
9 | std::env::set_var("RUST_BACKTRACE", "short"); | 9 | // re-enable and verify on windows after #1400 |
10 | // std::env::set_var("RUST_BACKTRACE", "short"); | ||
10 | let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All); | 11 | let logger = Logger::with_env_or_str("error").duplicate_to_stderr(Duplicate::All); |
11 | match std::env::var("RA_LOG_DIR") { | 12 | match std::env::var("RA_LOG_DIR") { |
12 | Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?, | 13 | Ok(ref v) if v == "1" => logger.log_to_file().directory("log").start()?, |