about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/bin/main.rs
AgeCommit message (Collapse)AuthorLines
2022-06-10Auto merge of #12449 - Veykril:version, r=Veykrilbors-3/+3
Bring the version command output in line with other rust tools Inspired by how cargo handles it Fixes https://github.com/rust-lang/rust-analyzer/issues/12280 ![image](https://user-images.githubusercontent.com/3757771/171680176-236451ee-2c6c-449f-8aa5-4a047e8cc907.png)
2022-06-03Shorten main thread nameLaurențiu Nicola-4/+2
2022-06-02Bring the version command output in line with other rust toolsLukas Wirth-3/+3
2022-06-01fix: Fix completions disappearing when typing two keys in quick successionLukas Wirth-1/+1
2022-04-22Spawn a new thread with a larger stack for the serverJonas Schievink-2/+23
2022-04-14internal: Show more project building errors to the userLukas Wirth-1/+3
2022-04-11Show config deseralization failures on start upLukas Wirth-3/+17
2022-01-06feat: poke user when supplying faulty configurationsLukas Wirth-1/+1
2021-12-20fix: Fix windows not finding the pdb fileLukas Wirth-0/+12
2021-10-21Migrate to edition 2021Lukas Wirth-1/+1
2021-09-26Begining of lsifhamidreza kalbasi-0/+1
2021-09-24Allow setting RUST_BACKTRACE for the server manuallyLukas Wirth-1/+3
2021-08-30switch `log` crate to `tracing`Dezhi Wu-32/+10
2021-08-10internal: unify subcommand handling between ra and xtaskAleksey Kladov-30/+9
2021-08-10internal: prepare to use standard .run pattern for subcommandsAleksey Kladov-2/+1
2021-06-21output to log file if RA_LOG_FILE is defined in environmentrezural-1/+8
2021-06-05Enable proc macros and build scripts by default in CLILaurențiu Nicola-3/+3
2021-05-27only advertise range formatting support if enabledAndy Russell-46/+38
2021-05-24Don't discover workspaces when detached files are givenKirill Bulatov-3/+2
2021-05-23Draft detached files retrievalKirill Bulatov-1/+1
2021-04-12feat: avoid checking the whole project during initial loadingAleksey Kladov-0/+15
2021-04-05analysis-stats: allow skipping type inferenceJonas Schievink-0/+1
This removes "noise" from memory profiles since it avoids lowering function bodies and types
2021-04-02Put the revision in the logged startup messageJade-1/+1
2021-03-30internal: switch from CLI to internal benchmarkingAleksey Kladov-12/+1
We have a CLI for benchmarking, but no one actually uses it it seems. Let's try switching to "internal" benchmarks, implemented as rust tests. They should be easier to "script" to automate tracking of perf regressions.
2021-03-14Add no-sysroot flag for analysis-statsEdwin Cheng-0/+1
2021-03-02Switch from pico-args to xflagsAleksey Kladov-26/+59
2021-02-16Enable offset-encoding capabilityAleksey Kladov-2/+6
2021-02-14Start LSP 3.17 supportJeremy Kolb-0/+1
2021-01-26Merge #7457bors[bot]-3/+14
7457: Add no-buffering file logging and wait for a debugger option. r=vsrs a=vsrs Adds two command line flags: `--no-buffering` and `--wait-dbg`. Not sure if someone else needs this, but personally I found both flags extremely useful trying to figure out why RA does not work with Visual Studio. Or better to say why Visual Studio does not work with RA. Co-authored-by: vsrs <vit@conrlab.com>
2021-01-27cargo fmtvsrs-1/+1
2021-01-27Add debug only guard for the --wait-dbg flagvsrs-0/+2
2021-01-26Make always-assert crate reusableAleksey Kladov-9/+0
2021-01-25Add RA_WAIT_DBG and docsvsrs-1/+1
2021-01-25Add the ability to wait for a debugger.vsrs-2/+11
2021-01-25Add --no-buffering flag for the file logging.vsrs-3/+3
2021-01-22Make assertion failures more annoying for maintainersAleksey Kladov-1/+6
2021-01-18Add back jemalloc supportJonas Schievink-0/+4
2021-01-14Introduce more appropriate assertion mechanismAleksey Kladov-0/+5
rust-analyzer is a long-running program, so we *should* handle assertion failures. See also https://www.sqlite.org/assert.html.
2021-01-06More maintainable configAleksey Kladov-9/+4
Rather than eagerly converting JSON, we losslessly keep it as is, and change the shape of user-submitted data at the last moment. This also allows us to remove a bunch of wrong Defaults
2020-12-08Make config.rs a single source of truth for configuration.Aleksey Kladov-0/+3
Configuration is editor-independent. For this reason, we pick JSON-schema as the repr of the source of truth. We do specify it using rust-macros and some quick&dirty hackery though. The idea for syncing truth with package.json is to just do that manually, but there's a test to check that they are actually synced. There's CLI to print config's json schema: $ rust-analyzer --print-config-schema We go with a CLI rather than LSP request/response to make it easier to incorporate the thing into extension's static config. This is roughtly how we put the thing in package.json.
2020-11-02Remove more unreachable pubsAleksey Kladov-1/+1
2020-10-25Add tracing to main rust-analyzer binaryFlorian Diebold-0/+22
2020-09-17Use `log::error!` in a few more placesJonas Schievink-0/+4
2020-08-26Simplify helpAleksey Kladov-2/+2
2020-08-26Allow redirecting logs to a specific fileAleksey Kladov-6/+19
There's a surprising lack of crates which are like env_logger, but also allow writing to a file. Let's write our own then!
2020-08-25Improve loggingAleksey Kladov-7/+6
2020-08-13Rename ra_project_model -> project_modelPavan Kumar Sunkara-1/+1
2020-08-13Rename ra_proc_macro_srv -> proc_macro_srvPavan Kumar Sunkara-1/+1
2020-08-12Rename ra_prof -> profileAleksey Kladov-1/+1
2020-08-01Simplify argument parsingLaurențiu Nicola-8/+11