aboutsummaryrefslogtreecommitdiff
path: root/crates/rust-analyzer/src/handlers.rs
Commit message (Collapse)AuthorAgeFilesLines
* Split hover actions config into its own config structLukas Wirth2021-06-211-15/+9
|
* Make documentation on hover configurableLukas Wirth2021-06-141-6/+10
|
* internal: diagnostic code is mandatoryAleksey Kladov2021-06-131-6/+5
|
* clippy::redundant_closureMaan20032021-06-131-1/+1
|
* clippy::redudant_borrowMaan20032021-06-131-4/+4
|
* Fix incorrect config usage in hover referencesLukas Wirth2021-06-071-1/+1
|
* Add function references hover actionLukas Wirth2021-06-041-0/+31
|
* NFC: remove redundant clones (clippy::perf)Matthias Krüger2021-06-031-1/+1
|
* Merge #8767bors[bot]2021-05-251-96/+143
|\ | | | | | | | | | | | | | | | | | | | | | | 8767: implement range formatting r=matklad a=euclio Fixes #7580. This PR implements the `textDocument/rangeFormatting` request using `rustfmt`'s `--file-lines` option. Still needs some tests. What I want to know is how I should handle the instability of the `--file-lines` option. It's still unstable in rustfmt, so it's only available on nightly, and needs a special flag to enable. Is there a way for `rust-analyzer` to detect if it's using nightly rustfmt, or for users to opt-in? Co-authored-by: Andy Russell <[email protected]>
| * implement range formattingAndy Russell2021-05-231-96/+143
| |
* | Do not add cargo target for detached files only projectKirill Bulatov2021-05-231-13/+22
|/
* Add a "Debug ItemTree" LSP requestJonas Schievink2021-05-211-0/+10
|
* Add new LSP extension for workspace symbol lookupalcroito2021-05-171-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new extension allows filtering of workspace symbool lookup results by search scope or search kind. Filtering can be configured in 3 different ways: - The '#' or '*' markers can be added inline with the symbol lookup query. The '#' marker means symbols should be looked up in the current workspace and any dependencies. If not specified, only current workspace is considered. The '*' marker means all kinds of symbols should be looked up (types, functions, etc). If not specified, only type symbols are returned. - Each LSP request can take an optional search_scope or search_kind argument query parameter. - Finally there are 2 global config options that can be set for all requests served by the active RA instance. Add support for setting the global config options to the VSCode extension. The extension does not use the per-request way, but it's useful for other IDEs. The latest version of VSCode filters out the inline markers, so currently the only reasonable way to use the new functionality is via the global config.
* minor: adjust config nameAleksey Kladov2021-05-171-6/+6
|
* Merge #8795bors[bot]2021-05-171-4/+9
|\ | | | | | | | | | | | | | | | | | | 8795: Allow semantic tokens for strings to be disabled r=matklad a=djrenren Fixes https://github.com/rust-analyzer/rust-analyzer/issues/7111 Pretty straightforward change, but open to any suggestions if there's a more recommended testing strategy than what I went with. Co-authored-by: John Renner <[email protected]>
| * Formatting and docsJohn Renner2021-05-101-3/+6
| |
| * Allow semantic tokens for strings to be disabledJohn Renner2021-05-101-4/+6
| |
* | Move `dot` invocation to rust-analyzer crateJonas Schievink2021-05-111-4/+16
| |
* | Allow viewing the crate graph in a webviewJonas Schievink2021-05-111-0/+6
|/
* Code review fixesKirill Bulatov2021-05-031-10/+28
|
* Index retrieval fixKirill Bulatov2021-05-031-1/+11
|
* Less panics in the assist resolutionKirill Bulatov2021-05-031-2/+10
|
* Add docs and use better namingKirill Bulatov2021-05-031-2/+2
|
* Resolve single assist onlyKirill Bulatov2021-05-031-10/+19
|
* Add a way to resolve certain assistsKirill Bulatov2021-05-031-5/+12
|
* Move cursor position when using item moversJonas Schievink2021-04-131-3/+6
|
* feat: improve performance by delaying computation of fixes for diagnosticsAleksey Kladov2021-04-131-1/+1
|
* Ensure that listing&resolving code actions use the same set of actionsAleksey Kladov2021-04-131-23/+15
|
* internal: unfork code paths for unresolved and resolved assistAleksey Kladov2021-04-131-60/+40
|
* internal: prepare for lazy diagnosticsAleksey Kladov2021-04-121-11/+13
|
* Use CompletionTextEdit::InsertAndReplace if supported by the clientLukas Wirth2021-04-081-1/+4
|
* Autoclose blocks when typing `{`Jonas Schievink2021-04-071-1/+0
|
* internal: explain "extract if condition" refactoringAleksey Kladov2021-04-051-9/+9
|
* Error when `rustfmt` component is unavailableJonas Schievink2021-04-041-1/+4
|
* Include remaining memory in memory usage statsJonas Schievink2021-04-011-1/+2
|
* Merge #8054bors[bot]2021-03-221-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 8054: Item movers r=matklad a=ivan770 Closes #6823 https://user-images.githubusercontent.com/14003886/111331579-b4f43480-8679-11eb-9af0-e4dabacc4923.mp4 Implementation issues: - [ ] Most of items are non-movable, since _movability_ of any item has to be determined manually. Common ones are movable though - [x] Cursor should move with the item Co-authored-by: ivan770 <[email protected]>
| * Item up and down moversivan7702021-03-181-0/+19
| |
* | Don't return a SourceChange on WillRenameFiles when nothing gets refactoredLukas Wirth2021-03-201-2/+5
|/
* remove uselessly wrapped ?s. (clippy::meedless_question_markMatthias Krüger2021-03-171-1/+1
| | | | | | | | let x = Some(3); let y = Some(x?); can just be: let y = x
*-. Merge #8021 #8022bors[bot]2021-03-151-11/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8021: Enable searching for builtin types r=matklad a=Veykril Not too sure how useful this is for reference search overall, but for completeness sake it should be there ![image](https://user-images.githubusercontent.com/3757771/111132711-f69db600-8579-11eb-8c90-22fd6862d11f.png) Also enables document highlighting for them. 8022: some clippy::performance fixes r=matklad a=matthiaskrgr use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unnecessary resizing Co-authored-by: Lukas Wirth <[email protected]> Co-authored-by: Matthias Krüger <[email protected]>
| * | Enable searching for builtin typesLukas Wirth2021-03-151-11/+9
| | |
* | | Make CI happyivan7702021-03-141-1/+1
| | |
* | | Introduce StructureNodeKindivan7702021-03-141-2/+2
| |/ |/|
* | Merge #7799bors[bot]2021-03-131-7/+23
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | 7799: Related tests r=matklad a=vsrs ![tests](https://user-images.githubusercontent.com/62505555/109397453-a9013680-7947-11eb-8b11-ac03079f7645.gif) This adds an ability to look for tests for the item under the cursor: function, constant, data type, etc The LSP part is bound to change. But the feature itself already works and I'm looking for a feedback :) Co-authored-by: vsrs <[email protected]>
| * Apply review suggestionsvsrs2021-03-111-2/+2
| |
| * Add LSP request and VSCode commandvsrs2021-02-271-0/+18
| |
| * Remove unnecessary file_id argumentvsrs2021-02-271-7/+5
| |
* | Avoid double text edits when renaming mod declarationLukas Wirth2021-03-101-1/+11
| |
* | Merge #7941bors[bot]2021-03-091-14/+7
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 7941: Fix unused definitions not being document highlit r=Veykril a=Veykril Fixes #7939 bors r+ Co-authored-by: Lukas Wirth <[email protected]>
| * | Fix unused definitions not being document highlitLukas Wirth2021-03-091-14/+7
| |/