about summary refs log tree commit diff
path: root/crates/rust-analyzer/src
AgeCommit message (Collapse)AuthorLines
2022-07-19Work around Code bug with empty diagnosticsLaurențiu Nicola-8/+18
2022-07-18Auto merge of #12807 - Veykril:completion-item-details, r=Veykrilbors-11/+38
Add simple support for completion item details Supercedes https://github.com/rust-lang/rust-analyzer/pull/9891 This doesn't yet really implement anything new, it just adds the scaffolding for the protocol conversion
2022-07-18Add simple support for completion item detailsLukas Wirth-11/+38
2022-07-18Improve file watcher configJonas Schievink-8/+23
2022-07-11Fix obsolete `enableRangeFormatting` configTonalidadeHidrica-1/+1
2022-07-08Update remaining GitHub URLsJonas Schievink-1/+1
2022-07-04Improve documentation for buildScripts.overrideCommand / ↵Florian Diebold-8/+11
checkOnSave.overrideCommand
2022-06-28fix: Report proc macro errors in expressions correctly as wellFlorian Diebold-9/+10
They didn't have a krate before, resulting in the generic "proc macro not found" error. Also improve error messages a bit more.
2022-06-20fix: Fix auto-ref completions inserting into wrong locationsLukas Wirth-20/+19
2022-06-18feat: add fold range for multi line match arm listharpsword-1/+2
2022-06-15Show proc-macro loading errors in unresolved-proc-macro diagnosticsLukas Wirth-35/+27
2022-06-15Auto merge of #12541 - Veykril:vs-reload, r=Veykrilbors-1/+2
fix: Clear proc-macro changed flag when reloading workspace
2022-06-15fix: Clear proc-macro changed flag when reloading workspaceLukas Wirth-1/+2
2022-06-14fix: Check for the correct proc-macro settings in missing proc-macro diagnosticsLukas Wirth-1/+2
2022-06-12Auto merge of #12515 - Veykril:rustc-proc-macros, r=Veykrilbors-1/+7
fix: Pass the build data to rustc_private crates With this all proc-macros should resolve in rustc now when setting up the build script running command properly.
2022-06-12fix: Pass the build data to rustc_private cratesLukas Wirth-1/+7
2022-06-12More precise proc-macro errorsLukas Wirth-1/+2
2022-06-12Auto merge of #12508 - Veykril:req-retry, r=Veykrilbors-3/+6
fix: Don't respond to cancelled requests when retrying them Fixes https://github.com/rust-lang/rust-analyzer/issues/12482
2022-06-12fix: Don't respond to cancelled requests when retrying themLukas Wirth-3/+6
2022-06-11fix: Fix config patching for callable snippetsLukas Wirth-1/+1
2022-06-10Auto merge of #12449 - Veykril:version, r=Veykrilbors-20/+81
Bring the version command output in line with other rust tools Inspired by how cargo handles it Fixes https://github.com/rust-lang/rust-analyzer/issues/12280 ![image](https://user-images.githubusercontent.com/3757771/171680176-236451ee-2c6c-449f-8aa5-4a047e8cc907.png)
2022-06-05Auto merge of #12466 - lnicola:worker-thread-stack, r=lnicolabors-1/+7
Increase worker thread stack and name them CC #11370
2022-06-05minor: Don't log cancelled diagnosticsLukas Wirth-6/+1
2022-06-04Increase worker thread stack and name themLaurențiu Nicola-1/+7
2022-06-03Shorten main thread nameLaurențiu Nicola-4/+2
2022-06-02Bring the version command output in line with other rust toolsLukas Wirth-20/+81
2022-06-01Auto merge of #12443 - Veykril:fmtfix, r=Veykrilbors-6/+10
minor: Fix rustfmt failing on main_loop.rs
2022-06-01minor: Fix rustfmt failing on main_loop.rsLukas Wirth-6/+10
2022-06-01fix(diagnostic): Don't remove diagnostic with empty messageMaan2003-4/+5
Use " " as message if it is empty
2022-06-01Sync handlers cannot be cancelledLukas Wirth-19/+9
2022-06-01fix: Fix completions disappearing when typing two keys in quick successionLukas Wirth-74/+83
2022-05-30Use char for trigger characterLukas Wirth-3/+4
2022-05-30Auto merge of #12406 - harpsword:fix-add-inlayHints-closures-without-block, ↵bors-3/+32
r=Veykril fix: add an option to show inlay hint for return type of closures wit… fix #12321
2022-05-30fix: visibility completionyue4u-20/+24
2022-05-28fix: add an option to show inlay hint for return type of closures without blockharpsword-3/+32
2022-05-27Auto merge of #12341 - vemoo:exclude_dirs, r=Veykrilbors-1/+16
make `files.excludeDirs` work There's a small issue because if all projects are excluded, this: https://github.com/rust-lang/rust-analyzer/blob/01d412f4d7bd7ef21a7e8f0461e9ba3439e3c4bf/crates/rust-analyzer/src/main_loop.rs#L114 will be shown. I thought about not showing it if `files.excludeDirs` is set, but that is not necessarily correct. Fixes #7755
2022-05-25fix: Clear native diagnostics for files when they are deletedLukas Wirth-0/+9
2022-05-25internal: Make autoclosing angle brackets configurable, disabled by defaultLukas Wirth-1/+9
2022-05-23Keep the other `is` in `reload.rs` docsDQ-1/+1
2022-05-23Fix typo in new `reload.rs` docsDQ-1/+1
Just skimmed today's changelog and came across the repetition
2022-05-22feat: Add on-typing handler for left angleFelicián Németh-1/+13
Only advertise this feature in the server capabilities when the client supports SnippetTextEdit. Close #11398. Co-authored-by: unexge <unexge@gmail.com>
2022-05-22internal: Allow OnTypeFormatting to send SnippetTextEditFelicián Németh-6/+19
But continue to send TextEdit only.
2022-05-21take into account excludeDirs when computing linked_projectsBernardo Uriarte-1/+16
2022-05-21internal: document overall approach to reloadAleksey Kladov-1/+14
2022-05-20Clear `cargo check` diagnostics when flycheck is turned offJonas Schievink-0/+1
2022-05-20Auto merge of #12263 - andylizi:hide-type-hint-closure, r=Veykrilbors-0/+6
feat: hide type inlay hints for initializations of closures ![hide_closure_initialization](https://user-images.githubusercontent.com/12008103/168470158-6cb77b18-068e-4431-a8b5-e2b22d50d263.gif) This PR adds an option to hide the inlay hints for `let IDENT_PAT = CLOSURE_EXPR;`, which is a somewhat common coding pattern. Currently the inlay hints for the assigned variable and the closure expression itself are both displayed, making it rather repetitive. In order to be consistent with closure return type hints, only closures with block bodies will be hid by this option. Personally I'd feel comfortable making it always enabled (or at least when closure return type hints are enabled), but considering the precedent set in #10761, I introduced an off-by-default option for this. changelog feature: option to hide type inlay hints for initializations of closures
2022-05-20Auto merge of #12301 - harpsword:fix_for_crlf_cargo_range_map, r=jonas-schievinkbors-22/+5
fix: calculate correct postion for Dos line ending in mapping rustc range to ls… fix #12293
2022-05-20feat: hide type inlay hints for initializations of closuresandylizi-0/+6
2022-05-19Auto merge of #12314 - jonas-schievink:proc-macro-load, r=jonas-schievinkbors-9/+9
minor: simplify
2022-05-19Auto merge of #12313 - equinox:typo-fix, r=lnicolabors-1/+1
Removed duplicate 'to' in `cachePriming.numThreads` option description One 'to' too many!