Skip to content

Commit f7efa9e

Browse files
Don't create launch.json for no select process (#4699)
This PR fixes resolveDebugConfigurationWithSubstitutedVariables to return null when user does not select a process in the process selection dialog. Co-authored-by: Joey Robichaud <[email protected]>
1 parent ba5862a commit f7efa9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/coreclr-debug/debugConfigurationProvider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ export class DotnetDebugConfigurationProvider implements vscode.DebugConfigurati
5555
}
5656
else
5757
{
58-
throw new Error("No process was selected.");
58+
vscode.window.showErrorMessage("No process was selected.", { modal: true });
59+
return undefined;
5960
}
6061
}
6162

0 commit comments

Comments
 (0)