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
This commit is contained in:
parent
4f78165ee8
commit
fee6f13887
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@ impl DapLocator for GoLocator {
|
||||||
resolved_label: &str,
|
resolved_label: &str,
|
||||||
adapter: DebugAdapterName,
|
adapter: DebugAdapterName,
|
||||||
) -> Option<DebugScenario> {
|
) -> Option<DebugScenario> {
|
||||||
|
if build_config.command != "go" {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
let go_action = build_config.args.first()?;
|
let go_action = build_config.args.first()?;
|
||||||
|
|
||||||
match go_action.as_str() {
|
match go_action.as_str() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue