Skip to content

Commit

Permalink
Don't create launch.json for no select process (#4699)
Browse files Browse the repository at this point in the history
This PR fixes resolveDebugConfigurationWithSubstitutedVariables to
return null when user does not select a process in the process selection
dialog.

Co-authored-by: Joey Robichaud <jorobich@microsoft.com>
  • Loading branch information
WardenGnaw and JoeRobich authored Aug 11, 2021
1 parent ba5862a commit f7efa9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr-debug/debugConfigurationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export class DotnetDebugConfigurationProvider implements vscode.DebugConfigurati
}
else
{
throw new Error("No process was selected.");
vscode.window.showErrorMessage("No process was selected.", { modal: true });
return undefined;
}
}

Expand Down

0 comments on commit f7efa9e

Please sign in to comment.