debugger: Fix go locator creating false scenarios (#31583)

Anthony Eid created

This caused other locators to fail because go would accept build tasks
that it couldn't actually resolve

Release Notes:

- N/A

Change summary

crates/project/src/debugger/locators/go.rs | 4 ++++
1 file changed, 4 insertions(+)

Detailed changes

crates/project/src/debugger/locators/go.rs 🔗

@@ -23,6 +23,10 @@ impl DapLocator for GoLocator {
         resolved_label: &str,
         adapter: DebugAdapterName,
     ) -> Option<DebugScenario> {
+        if build_config.command != "go" {
+            return None;
+        }
+
         let go_action = build_config.args.first()?;
 
         match go_action.as_str() {