about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/cli
AgeCommit message (Collapse)AuthorLines
2022-06-02Bring the version command output in line with other rust toolsLukas Wirth-1/+2
2022-05-19simplifyJonas Schievink-2/+1
2022-03-22Preserve order when grouping references.Kyle Huey-11/+16
2022-03-22LSIF: consolidate references into a single edge where possible.Kyle Huey-8/+13
2022-02-25Add CSV output to analysis-statsFlorian Diebold-6/+68
For easy diffing.
2022-01-14cleanup + detect num cpusJake Heinz-1/+1
2022-01-06feat: Add config to replace specific proc-macros with dummy expandersLukas Wirth-1/+2
2021-11-22Emit moniker in lsifhkalbasi-2/+46
2021-10-29Fix Plaintext textDocument/hovervsrs-0/+1
2021-10-12Merge #10423bors[bot]-2/+2
10423: Internal: refactor for mdbook plugin r=Veykril a=HKalbasi This PR is for upstreaming changes that I made for mdbook plugin. Changes are adding inlay hints to `StaticIndex` and changing some functions for working around privacy of crates. Aside this, is it okay if I bring the plugin in tree? It is a simple binary crate. I feel it will better maintained here and become resistant to api changes. Co-authored-by: hamidreza kalbasi <hamidrezakalbasi@protonmail.com>
2021-10-12internal changes for mdbookhamidreza kalbasi-2/+2
2021-10-11Add toolInfo in MetaData vertex in LSIF dumpsQuentin Gliech-1/+5
This helps with uploading LSIF dumps to Sourcegraph without having to specify an indexer name.
2021-10-10Remove neesless clonek-nasa-2/+2
2021-09-29remove glob import and cancellableshamidreza kalbasi-59/+67
2021-09-26support goto definition and find referenceshamidreza kalbasi-14/+101
2021-09-26reuse hover results with resultsethamidreza kalbasi-47/+76
2021-09-26move lsif types to lsp types cratehamidreza kalbasi-368/+13
2021-09-26add hoverhamidreza kalbasi-36/+56
2021-09-26cfg unix for tests with unix pathhamidreza kalbasi-0/+2
2021-09-26use utf16 instead of utf8hamidreza kalbasi-2/+9
2021-09-26Begining of lsifhamidreza kalbasi-2/+480
2021-08-31minor: improve readabilityAleksey Kladov-4/+4
naming, layout & comments help!
2021-08-31internal: split database loading time in anaysis-stats into componentsAleksey Kladov-19/+38
2021-08-30switch `log` crate to `tracing`Dezhi Wu-1/+1
2021-08-22internal: remove unreasonable crate dependencyAleksey Kladov-4/+2
Proc macro expansion shouldn't know about salsa at all.
2021-08-22internal: reduce crate interdependenceAleksey Kladov-9/+13
I don't think there's anything wrong with project_model depending on proc_macro_api directly -- fundamentally, both are about gluing our pure data model to the messy outside world. However, it's easy enough to avoid the dependency, so why not. As an additional consideration, `proc_macro_api` now pulls in `base_db`. project_model should definitely not depend on that!
2021-08-10Update crates/rust-analyzer/src/cli/analysis_stats.rsAleksey Kladov-1/+1
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2021-08-10internal: print total size of source code in analysis-statsAleksey Kladov-5/+35
2021-08-10internal: unify subcommand handling between ra and xtaskAleksey Kladov-132/+182
2021-08-10internal: prepare to use standard .run pattern for subcommandsAleksey Kladov-0/+210
2021-08-01Make `LoadCargoConfig`, `fn load_workspace_at` & `fn load_workspace` public ↵Vincent Esche-6/+15
again
2021-07-19remove debug printsAleksey Kladov-2/+0
2021-07-18fix: potential bugs when build scripts do not match the current projectAleksey Kladov-15/+13
2021-07-18internal: simplify handling of the build scriptsAleksey Kladov-32/+21
2021-07-17internal: a bit more of cwd safety for flycheckAleksey Kladov-5/+5
2021-06-13clippy::redudant_borrowMaan2003-1/+1
2021-06-11Only prefill caches in the completion benchmarkKirill Bulatov-5/+19
2021-06-11Fix visibility issuesKirill Bulatov-5/+5
2021-06-11Prime caches on workspace loadKirill Bulatov-1/+3
2021-06-05Enable proc macros and build scripts by default in CLILaurențiu Nicola-4/+4
2021-06-05Enable attribute macro expansion in `analysis-stats`Florian Diebold-0/+3
Before: ``` > $ rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 19.08s, 277minstr crates: 34, mods: 688, decls: 13202, fns: 10412 Item Collection: 16.21s, 76ginstr exprs: 290580, ??ty: 2508 (0%), ?ty: 1814 (0%), !ty: 947 Inference: 27.46s, 108ginstr Total: 43.67s, 184ginstr ``` After: ``` > $ ./target/release/rust-analyzer -q analysis-stats --with-proc-macro --load-output-dirs . Database loaded: 1.09s, 277minstr crates: 34, mods: 688, decls: 14790, fns: 11006 Item Collection: 18.20s, 78ginstr exprs: 297826, ??ty: 493 (0%), ?ty: 558 (0%), !ty: 342 Inference: 28.34s, 111ginstr Total: 46.54s, 190ginstr ```
2021-05-27Display unknown types in analysis-statsLaurențiu Nicola-34/+53
2021-05-03Add a way to resolve certain assistsKirill Bulatov-3/+4
2021-04-13feat: improve performance by delaying computation of fixes for diagnosticsAleksey Kladov-1/+2
2021-04-12feat: avoid checking the whole project during initial loadingAleksey Kladov-7/+16
2021-04-06Move Ty accessors to TyExtLukas Wirth-1/+1
2021-04-05analysis-stats: allow skipping type inferenceJonas Schievink-22/+38
This removes "noise" from memory profiles since it avoids lowering function bodies and types
2021-03-30internal: switch from CLI to internal benchmarkingAleksey Kladov-196/+0
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-1/+4
2021-03-13Separate `Ty` and `TyKind` like in ChalkFlorian Diebold-3/+3
Currently `Ty` just wraps `TyKind`, but this allows us to change most places to already use `intern` / `interned`.