File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ The underlying engine makes sure that model is computed lazily (on-demand) and c
42
42
` crates/rust-analyzer/src/bin/main.rs ` contains the main function which spawns LSP.
43
43
This is * the* entry point, but it front-loads a lot of complexity, so it's fine to just skim through it.
44
44
45
- ` crates/rust-analyzer/src/handlers.rs ` implements all LSP requests and is a great place to start if you are already familiar with LSP.
45
+ ` crates/rust-analyzer/src/handlers/requests .rs ` implements all LSP requests and is a great place to start if you are already familiar with LSP.
46
46
47
47
` Analysis ` and ` AnalysisHost ` types define the main API for consumers of IDE services.
48
48
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ async function getDebugConfiguration(
173
173
if ( debugConfig . name === "run binary" ) {
174
174
// The LSP side: crates\rust-analyzer\src\main_loop\handlers.rs,
175
175
// fn to_lsp_runnable(...) with RunnableKind::Bin
176
+ // FIXME: Neither crates\rust-analyzer\src\main_loop\handlers.rs
177
+ // nor to_lsp_runnable exist anymore
176
178
debugConfig . name = `run ${ path . basename ( executable ) } ` ;
177
179
}
178
180
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export async function selectRunnable(
36
36
37
37
if ( runnables . length === 0 ) {
38
38
// it is the debug case, run always has at least 'cargo check ...'
39
- // see crates\rust-analyzer\src\main_loop\ handlers.rs, handle_runnables
39
+ // see crates\rust-analyzer\src\handlers\request .rs, handle_runnables
40
40
await vscode . window . showErrorMessage ( "There's no debug target!" ) ;
41
41
quickPick . dispose ( ) ;
42
42
return ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export class Cargo {
29
29
static artifactSpec ( cargoArgs : string [ ] , executableArgs ?: string [ ] ) : ArtifactSpec {
30
30
cargoArgs = [ ...cargoArgs , "--message-format=json" ] ;
31
31
// arguments for a runnable from the quick pick should be updated.
32
- // see crates\rust-analyzer\src\main_loop\ handlers.rs, handle_code_lens
32
+ // see crates\rust-analyzer\src\handlers\request .rs, handle_code_lens
33
33
switch ( cargoArgs [ 0 ] ) {
34
34
case "run" :
35
35
cargoArgs [ 0 ] = "build" ;
You can’t perform that action at this time.
0 commit comments