aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop/handlers.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove RWLock from check watcher.Emil Lauridsen2020-01-231-3/+2
| | | | | | | | | | | | | | @matklad mentioned this might be a good idea. So the general idea is that we don't really need the lock, as we can just clone the check watcher state when creating a snapshot. We can then use `Arc::get_mut` to get mutable access to the state from `WorldState` when needed. Running with this it seems to improve responsiveness a bit while cargo is running, but I have no hard numbers to prove it. In any case, a serialization point less is always better when we're trying to be responsive.
* Minimize visibilityAleksey Kladov2020-01-161-4/+6
|
* itertools::Either -> either::EitherKirill Bulatov2020-01-151-1/+1
|
* Apply the api design suggestionsKirill Bulatov2020-01-151-10/+18
|
* Another attempt to add multiple editsKirill Bulatov2020-01-151-4/+8
|
* Merge #2843bors[bot]2020-01-151-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | 2843: Add inlay parameter name hints for call expr r=matklad a=imtsuki This patch adds Intellij-like parameter name hints for literal values in function calls. <img width="624" alt="Screenshot" src="https://user-images.githubusercontent.com/8423594/72366533-68d7f800-3735-11ea-9279-cf193ca8ca2f.png"> Signed-off-by: imtsuki <[email protected]> Co-authored-by: imtsuki <[email protected]>
| * Add inlay parameter name hints for function callsimtsuki2020-01-141-0/+1
| | | | | | | | Signed-off-by: imtsuki <[email protected]>
* | Tweak add_custom_implJeremy Kolb2020-01-141-0/+1
|/
* Basic DocumentHighlightKind support for assignmentsJeremy Kolb2020-01-101-10/+24
|
* Implement proposed CallHierarchy featureJeremy Kolb2020-01-081-2/+96
| | | | See: https://github.com/microsoft/vscode-languageserver-node/blob/master/protocol/src/protocol.callHierarchy.proposed.ts
* Adds a way to limits reference search by StructLiteralMikhail Modin2020-01-081-6/+9
|
* Initial implementation of cargo check watchingEmil Lauridsen2019-12-251-1/+27
|
* Add some module docsJeremy Kolb2019-12-211-1/+2
|
* Clippy lintskjeremy2019-12-201-1/+1
|
* Revert "Revert "Support LSP 3.15""Aleksey Kladov2019-12-111-1/+4
| | | | This reverts commit 1e0bf205eff81f04c0e1e6c208c3489327520c3f.
* Revert "Support LSP 3.15"Aleksey Kladov2019-12-111-4/+1
| | | | This reverts commit 712700d8e027b108f9c4f8fa9acc2f25e453b6d1.
* Support LSP 3.15Jeremy Kolb2019-12-111-1/+4
| | | | This merely upgrades our protocol support. It does not add any of the new features.
* Run rustfmt with respect to Cargo.toml editionVincent Rouillé2019-12-041-0/+6
|
* Move identifier check to analysisWilco Kusee2019-11-291-11/+1
|
* Also allow renaming to underscoreWilco Kusee2019-11-291-1/+3
|
* Only allow renames to valid identifiersWilco Kusee2019-11-291-1/+7
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-3/+3
|
* Merge pull request #2297 from kiljacken/masterAleksey Kladov2019-11-201-1/+1
|\ | | | | Add fancy truncation of type hints.
| * Move type inlay hint truncation to language serverEmil Lauridsen2019-11-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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-2/+5
| |
* | Add recursive expand in vscodeEdwin Cheng2019-11-191-0/+15
|/
* Profile all request handlerskjeremy2019-10-291-0/+19
|
* disable the new typing handler for `->`Aleksey Kladov2019-10-251-0/+9
| | | | It doesn't actually work with LSP
* insert space after `->`Aleksey Kladov2019-10-251-0/+1
|
* make typing infra slightly more extensibleAleksey Kladov2019-10-251-6/+2
|
* for highlighting, search only the current fileAleksey Kladov2019-10-241-3/+8
|
* add couple of profiling callsAleksey Kladov2019-10-231-0/+4
|
* fix highlightingEkaterina Babshukova2019-10-221-0/+1
|
* restructure a bitEkaterina Babshukova2019-10-221-1/+1
|
* make `handle_references` accept refs from other filesEkaterina Babshukova2019-10-221-4/+9
|
* fixup folding ranges for "lineFoldingOnly" clients #2033Alex Zatelepin2019-10-211-2/+8
|
* Added test for check doc strings in crates.Alexander Andreev2019-09-301-0/+2
| | | | #1856
* move fold conversino to conv.rsAleksey Kladov2019-09-191-32/+6
|
* fix typoAleksey Kladov2019-09-191-1/+1
|
* fix renaming of modulesAleksey Kladov2019-09-051-8/+6
|
* move lsp-server to a separate repositoryAleksey Kladov2019-08-301-1/+1
|
* translate \n -> \r\n on the way outAleksey Kladov2019-08-201-2/+4
|
* update lspAleksey Kladov2019-08-171-2/+1
|
* Drop support for old extendSelection APIAleksey Kladov2019-08-121-22/+1
| | | | | | Emacs now handles this via native LSP request https://github.com/emacs-lsp/lsp-mode/commit/dc86bbb227147aa8141e690ad5648fdbd2ebdb9f
* Always set the runnable nameKirill Bulatov2019-08-091-11/+11
|
* Extract common logicKirill Bulatov2019-08-091-55/+42
|
* Show backtraces in lens runnablesKirill Bulatov2019-08-091-1/+5
|
* Merge #1652bors[bot]2019-08-061-8/+1
|\ | | | | | | | | | | | | | | | | | | | | | | 1652: Improve type hints behavior r=matklad a=SomeoneToIgnore This PR fixed the following type hints issues: * Restructures the `InlayKind` enum contents based on the discussion here: https://github.com/rust-analyzer/rust-analyzer/pull/1606#issuecomment-515968055 * Races described in #1639 * Caches the latest decorations received for each file to show them the next time the file is opened (instead of a new server request) Co-authored-by: Kirill Bulatov <[email protected]>
| * Use proper inlay kindsKirill Bulatov2019-08-041-8/+1
| |
* | use Conv for severityAleksey Kladov2019-08-061-15/+6
|/