mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Add a section on entry points
This commit is contained in:
parent
a423a5196c
commit
cbebb70313
1 changed files with 9 additions and 1 deletions
|
@ -39,6 +39,14 @@ The client can submit a small delta of input data (typically, a change to a sing
|
||||||
|
|
||||||
The underlying engine makes sure that model is computed lazily (on-demand) and can be quickly updated for small modifications.
|
The underlying engine makes sure that model is computed lazily (on-demand) and can be quickly updated for small modifications.
|
||||||
|
|
||||||
|
## Entry Points
|
||||||
|
|
||||||
|
`crates/rust-analyzer/src/bin/main.rs` contains the main function which spawns LSP.
|
||||||
|
This is *the* entry point, but it front-loads a lot of complexity, so its fine to just skim through it.
|
||||||
|
|
||||||
|
`crates/rust-analyzer/src/handlers.rs` implements all LSP requests and is a great place to start if you are already familiar with LSP.
|
||||||
|
|
||||||
|
`Analysis` and `AnalysisHost` types define the main API.
|
||||||
|
|
||||||
## Code Map
|
## Code Map
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue