Skip to content

Commit 01aaa53

Browse files
committed
Update handlers.rs to handlers/requests.rs
1 parent 546339a commit 01aaa53

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

docs/dev/architecture.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The underlying engine makes sure that model is computed lazily (on-demand) and c
4242
`crates/rust-analyzer/src/bin/main.rs` contains the main function which spawns LSP.
4343
This is *the* entry point, but it front-loads a lot of complexity, so it's fine to just skim through it.
4444

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.
4646

4747
`Analysis` and `AnalysisHost` types define the main API for consumers of IDE services.
4848

editors/code/src/debug.ts

+2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ async function getDebugConfiguration(
173173
if (debugConfig.name === "run binary") {
174174
// The LSP side: crates\rust-analyzer\src\main_loop\handlers.rs,
175175
// 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
176178
debugConfig.name = `run ${path.basename(executable)}`;
177179
}
178180

editors/code/src/run.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function selectRunnable(
3636

3737
if (runnables.length === 0) {
3838
// 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
4040
await vscode.window.showErrorMessage("There's no debug target!");
4141
quickPick.dispose();
4242
return;

editors/code/src/toolchain.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class Cargo {
2929
static artifactSpec(cargoArgs: string[], executableArgs?: string[]): ArtifactSpec {
3030
cargoArgs = [...cargoArgs, "--message-format=json"];
3131
// 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
3333
switch (cargoArgs[0]) {
3434
case "run":
3535
cargoArgs[0] = "build";

0 commit comments

Comments
 (0)