From fee6f13887909dfee8a764b9bba3d00313dc637e Mon Sep 17 00:00:00 2001 From: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com> Date: Wed, 28 May 2025 15:34:14 +0300 Subject: [PATCH] debugger: Fix go locator creating false scenarios (#31583) This caused other locators to fail because go would accept build tasks that it couldn't actually resolve Release Notes: - N/A --- crates/project/src/debugger/locators/go.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/project/src/debugger/locators/go.rs b/crates/project/src/debugger/locators/go.rs index 3b905cce910490d01a49118114a132dcd3a96509..fe7b306e3bdd377b1a13c4597d3739ee72059888 100644 --- a/crates/project/src/debugger/locators/go.rs +++ b/crates/project/src/debugger/locators/go.rs @@ -23,6 +23,10 @@ impl DapLocator for GoLocator { resolved_label: &str, adapter: DebugAdapterName, ) -> Option { + if build_config.command != "go" { + return None; + } + let go_action = build_config.args.first()?; match go_action.as_str() {