about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/docs/dev
AgeCommit message (Collapse)AuthorLines
2025-02-17move dev docs to manualJosh Rotenberg-4367/+0
fix formatting
2025-01-28Merge pull request #19015 from Wilfred/mdbookLukas Wirth-2/+2
manual: Convert to mdbook
2025-01-26Update outdated permissions section in the README.mdLukas Wirth-12/+6
2025-01-25Skip redundant path search in `resolve_completion_edits`Lukas Wirth-1/+1
2025-01-24manual: Convert to mdbookWilfred Hughes-2/+2
Split manual.adoc into markdown files, one for each chapter. For the parts of the manual that are generated from source code doc comments, update the comments to use markdown syntax and update the code generators to write to `generated.md` files. For the weekly release, stop copying the .adoc files to the `rust-analyzer/rust-analyzer.github.io` at release time. Instead, we'll sync the manual hourly from this repository. See https://github.com/rust-analyzer/rust-analyzer.github.io/pull/226 for the sync. This PR should be merged first, and that PR needs to be merged before the next weekly release. This change is based on #15795, but rebased and updated. I've also manually checked each page for markdown syntax issues and fixed any I encountered. Co-authored-by: Lukas Wirth <lukastw97@gmail.com> Co-authored-by: Josh Rotenberg <joshrotenberg@gmail.com>
2025-01-17Update syntax tree viewer docsMark Murphy-7/+9
2025-01-09Remove the old syntax tree viewerGiga Bowser-1/+1
2025-01-09Add a new and improved syntax tree viewerGiga Bowser-1/+18
2025-01-06fix: Be more permissive with completion resolve dataLukas Wirth-1/+1
2024-12-26feat: support UpdateTest in codelensroife-1/+1
2024-12-16internal: Don't serialize empty fields in completions and resolve payloadsLukas Wirth-1/+1
2024-12-10Address the feedback from pascalkutheKirill Bulatov-1/+1
* Use Base64 to minify the hash representation in the JSON data * Do hash checks only for items with similar labels
2024-12-09Always compute the hash when r-a wants the imports to be resolvedKirill Bulatov-1/+1
2024-12-09Draft completion hashingKirill Bulatov-1/+1
2024-11-23Update request entry point file path in architecture.mdMark Murphy-1/+1
2024-11-11Update the file hashKirill Bulatov-1/+1
2024-11-10Replace with C-ArchitectureSam Estep-0/+4
2024-11-07Delete design label from listSam Estep-4/+0
2024-10-22docs: remove unnecessary prerequisites setup.mdDavid Kurilla-9/+3
2024-10-18style: fix typosDavid Kurilla-3/+3
2024-10-18docs: create setup documentationDavid Kurilla-0/+63
2024-10-04internal: add JSON formatting for hprofDavid Barsky-1/+9
2024-09-30Auto merge of #18167 - SomeoneToIgnore:fat-completions, r=Veykrilbors-1/+1
internal: Send less data during `textDocument/completion` if possible Similar to https://github.com/rust-lang/rust-analyzer/pull/15522, stops sending extra data during `textDocument/completion` if that data was set in the client completions resolve capabilities, and sends those only during `completionItem/resolve` requests. Currently, rust-analyzer sends back all fields (including potentially huge docs) for every completion item which might get large. Same as the other one, this PR aims to keep the changes minimal and does not remove extra computations for such fields — instead, it just filters them out before sending to the client. The PR omits primitive, boolean and integer, types such as `deprecated`, `preselect`, `insertTextFormat`, `insertTextMode`, etc. AND `additionalTextEdits` — this one looks very dangerous to compute for each completion item (as the spec says we ought to if there's no corresponding resolve capabilities provided) due to the diff computations and the fact that this code had been in the resolution for some time. It would be good to resolve this lazily too, please let me know if it's ok to do. When tested with Zed which only defines `documentation` and `additionalTextEdits` in its client completion resolve capabilities, rust-analyzer starts to send almost 3 times less characters: Request: ```json {"jsonrpc":"2.0","id":104,"method":"textDocument/completion","params":{"textDocument":{"uri":"file:///Users/someonetoignore/work/rust-analyzer/crates/ide/src/inlay_hints.rs"},"position":{"line":90,"character":14},"context":{"triggerKind":1}}} ``` <img width="1338" alt="image" src="https://github.com/user-attachments/assets/104f19b5-7095-4fc1-b008-5d829623b2e2"> Before: 381944 characters [before.json](https://github.com/user-attachments/files/17092385/before.json) After: 140503 characters [after.json](https://github.com/user-attachments/files/17092386/after.json) After Zed's [patch](https://github.com/zed-industries/zed/pull/18212) to enable all resolving possible: 84452 characters [after-after.json](https://github.com/user-attachments/files/17092755/after-after.json)
2024-09-29Rename object_safety to dyn_compatibilityNoah Bright-1/+1
Up to a trait implemented by another package, linking to $CARGO_HOME/registry/cache/index.crates.io-6f17d22bba15001f/
2024-09-28Update handlers.rs to handlers/requests.rsNoah Bright-1/+1
2024-09-23Fix the testKirill Bulatov-1/+1
2024-09-08Better testing infra for ratomlAli Bektas-1/+1
2024-08-30Improve inlay hint resolution reliabilityLukas Wirth-1/+1
2024-08-12internal: Reply to requests with defaults when vfs is still loadingLukas Wirth-1/+1
2024-07-29Auto merge of #17707 - Veykril:proc-macro-err-cleanup, r=Veykrilbors-9/+1
feat: Use spans for builtin and declarative macro expansion errors This should generally improve some error reporting for macro expansion errors. Especially for `compile_error!` within proc-macros
2024-07-26docs: Reference cov_mark crate instead of test_utils/markEdward Jones-1/+1
Seems this was switched over in https://github.com/rust-lang/rust-analyzer/issues/7922
2024-07-26Internal: Cleanup proc-macro error handlingLukas Wirth-9/+1
2024-07-23internal: remove UnindexedProject notificationDavid Barsky-20/+1
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
2024-07-18feature: move `linked_projects` discovery to the rust-analyzer serverDavid Barsky-1/+1
2024-07-07Fix stale reference in architecture.mdLukas Wirth-1/+1
2024-07-07Move capability querying out of the config moduleLukas Wirth-1/+1
2024-07-06Flatten cargoExtraArgs away from the runnable lsp extensionLukas Wirth-8/+3
2024-07-06Add environment to runnable lsp extensionLukas Wirth-4/+33
2024-06-17feat: add `toggleLSPLogs` commandJoel Daniel Rico-1/+1
add `toggleLSPLogs` command update docs to reflect new command
2024-06-11feature: add build system info; runnables to `rust-project.json`Wilfred Hughes-2/+13
2024-06-07Fix processing of ratoml filesLukas Wirth-1/+1
2024-05-24Update docsroife-1/+2
2024-05-23Allow sysroots to only consist of the source root dirLukas Wirth-1/+1
2024-04-28Don't retry position relient requests and version resolve dataLukas Wirth-1/+1
2024-04-26Show workspace info in the status barLukas Wirth-1/+1
2024-04-21Use josh for subtree syncsLaurențiu Nicola-0/+4280