aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* Add support for environment to CrateGraphAleksey Kladov2019-11-221-2/+2
|
* Merge pull request #2297 from kiljacken/masterAleksey Kladov2019-11-201-2/+8
|\ | | | | Add fancy truncation of type hints.
| * Move type inlay hint truncation to language serverEmil Lauridsen2019-11-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | This commit implements a general truncation framework for HirFormatter that keeps track of how much has been output so far. This information can then be used to perform truncation inside the language server, instead of relying on the client. Initial support is implemented for truncating types hints using the maxInlayHintLength server config option. The existing solution in the VSCode extension has been removed in favor of letting the server truncate type hints.
* | Change return type of expand_macroEdwin Cheng2019-11-191-1/+2
| |
* | Add recursive expand in vscodeEdwin Cheng2019-11-191-0/+5
|/
* Add ra_ide_api::expandAleksey Kladov2019-11-181-0/+1
| | | | | This module should handle all tricky bits with mapping macro-expanded HirFileId to original files the user actually can see in the editor
* Introduce ToNav traitAleksey Kladov2019-11-111-2/+2
|
* refactor typing_handlersAleksey Kladov2019-10-251-0/+4
|
* move source change to a dedicated fileAleksey Kladov2019-10-251-95/+2
|
* make typing infra slightly more extensibleAleksey Kladov2019-10-251-18/+10
|
* for highlighting, search only the current fileAleksey Kladov2019-10-241-2/+3
|
* restructure a bitEkaterina Babshukova2019-10-221-2/+0
|
* find scope for `Declaration` itemEkaterina Babshukova2019-10-221-0/+1
|
* refactor name_ref_kind.rsEkaterina Babshukova2019-10-221-1/+1
|
* Prepare SourceDatabase API for lazy file loadingAleksey Kladov2019-10-141-3/+7
|
* use slightly more idiomatic api for cfgAleksey Kladov2019-10-081-1/+2
|
* Enable CfgOptions `test` for workspace cratesuHOOCCOOHu2019-10-021-1/+5
|
* allow compiling ra_ide_api on wasmAleksey Kladov2019-09-201-0/+1
|
* A few doc commentskjeremy2019-09-191-1/+9
|
* fix renaming of modulesAleksey Kladov2019-09-051-2/+2
|
* implement feature flagsAleksey Kladov2019-08-221-3/+13
|
* implement durabilityAleksey Kladov2019-08-151-0/+3
|
* Make Analysis api cancellableKirill Bulatov2019-07-251-39/+47
|
* Resolve types on the serverKirill Bulatov2019-07-211-1/+1
|
* Code review fixesKirill Bulatov2019-07-211-2/+2
|
* Refactor server apiKirill Bulatov2019-07-201-0/+7
|
* migrate ra_ide_api to the new rowanAleksey Kladov2019-07-191-6/+6
|
* make Parse fields privateAleksey Kladov2019-07-121-9/+11
| | | | this is in preparation for the new rowan API
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-13/+15
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* print memory usage for queriesAleksey Kladov2019-06-301-0/+4
|
* Move memory usage statistics to ra_profAleksey Kladov2019-06-301-6/+0
|
* add analysis-bench to benchmark incremental analysisAleksey Kladov2019-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Can be used like this: ``` $ cargo run --release -p ra_cli -- \ analysis-bench ../chalk/ \ --complete ../chalk/chalk-engine/src/logic.rs:94:0 loading: 225.970093ms from scratch: 8.492373325s no change: 445.265µs trivial change: 95.631242ms ``` Or like this: ``` $ cargo run --release -p ra_cli -- \ analysis-bench ../chalk/ \ --highlight ../chalk/chalk-engine/src/logic.rs loading: 209.873484ms from scratch: 9.504916942s no change: 7.731119ms trivial change: 124.984039ms ``` "from scratch" includes initial analysis of the relevant bits of the project "no change" just asks the same question for the second time. It measures overhead on assembling the answer outside of salsa. "trivial change" doesn't do an actual salsa change, it just advances the revision. This test how fast is salsa at validating things.
* reuse AnalysisHost in batch analysisAleksey Kladov2019-06-151-0/+3
|
* make LRU cache configurableAleksey Kladov2019-06-121-1/+10
|
* Remove node function in NavTargetEdwin Cheng2019-06-081-1/+1
|
* fix typos in mbe testsAleksey Kladov2019-05-281-6/+6
|
* Disable broken struct field rainbowingPascal Hertleif2019-05-271-3/+3
|
* More clever highlighting, incl draft for structsPascal Hertleif2019-05-271-1/+1
|
* Colorize Rust code as HTMLAleksey Kladov2019-05-251-0/+5
|
* Move NameRef classification logic out of reference_definitionLaurențiu Nicola2019-05-231-8/+3
|
* Basic resolution for ADTkjeremy2019-04-231-0/+8
|
* Make display modules privateVille Penttinen2019-04-091-1/+1
|
* Move structure to display/structureVille Penttinen2019-04-091-4/+2
|
* Move navigation_target to display/navigation_targetVille Penttinen2019-04-091-3/+1
|
* Move FunctionSignature to display, remove write_joinedVille Penttinen2019-04-091-26/+1
| | | | | write_joined is replaced with `join_to_string::join` which provides the necessary functionality.
* Refactor CallInfo function signatures to new FunctionSignature typeVille Penttinen2019-04-091-2/+27
| | | | | This is used by CallInfo to create a pretty printed function signature that can be used with completions and other places as well.
* structure moved to ra_ide_apiSergey Parilin2019-03-251-6/+5
| | | | ra_ide_api_light removed completely
* Rename source_edit to source_file_edit to match file_system_editVille Penttinen2019-03-251-6/+6
|
* Further improvements to the SourceChange convenience methodsVille Penttinen2019-03-251-7/+42
| | | | | Rename system_edit to file_system_edit, add more documentation, add source_file_edit_from to create a SourceChange from `FileId` and `TextEdit`.
* Add convenience functions to SourceChange for creating single editsVille Penttinen2019-03-241-12/+43
|