aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main_loop
Commit message (Collapse)AuthorAgeFilesLines
* Init implementation of structural search replaceMikhail Modin2020-02-141-0/+5
|
* prevent "Play" symbol in "Run Test" code lens from rendering as emojiQuan Luu2020-02-131-1/+1
|
* Better error messages while deserializingAleksey Kladov2020-02-111-1/+2
|
* Simplify Assists interfaceAleksey Kladov2020-02-091-28/+48
| | | | | Instead of building a physical tree structure, just "tag" related assists with the same group
* Remove stray todoEmil Lauridsen2020-02-031-1/+0
|
* Rework how we send diagnostics to client.Emil Lauridsen2020-02-031-29/+8
| | | | | | | | | | | | The previous way of sending from the thread pool suffered from stale diagnostics due to being canceled before we could clear the old ones. The key change is moving to sending diagnostics from the main loop thread, but doing all the hard work in the thread pool. This should provide the best of both worlds, with little to no of the downsides. This should hopefully fix a lot of issues, but we'll need testing in each individual issue to be sure.
* Small cleanupAleksey Kladov2020-01-311-4/+6
|
* 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-213-3/+4
|
* 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-272-4/+4
|
* 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-303-0/+6
| | | | #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
|
* cleanup main loopAleksey Kladov2019-08-311-1/+1
|
* move lsp-server to a separate repositoryAleksey Kladov2019-08-302-10/+11
|
* translate \n -> \r\n on the way outAleksey Kladov2019-08-201-2/+4
|