File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/lsptoolshost/debugger Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ export function registerDebugger(
5353 ) ;
5454
5555 context . subscriptions . push (
56- vscode . commands . registerCommand ( 'dotnet.generateAssets' , async ( selectedIndex ) => {
57- if ( ! ( await promptForDevKitDebugConfigurations ( ) ) ) {
56+ vscode . commands . registerCommand ( 'dotnet.generateAssets' , async ( selectedIndex , skipPrompt = false ) => {
57+ if ( ! ( await promptForDevKitDebugConfigurations ( skipPrompt ) ) ) {
5858 return ;
5959 }
6060
@@ -63,8 +63,13 @@ export function registerDebugger(
6363 ) ;
6464}
6565
66- async function promptForDevKitDebugConfigurations ( ) : Promise < boolean > {
66+ async function promptForDevKitDebugConfigurations ( skipPrompt : boolean = false ) : Promise < boolean > {
6767 if ( getCSharpDevKit ( ) ) {
68+ // If skipPrompt is true, proceed with generating assets without showing the dialog
69+ if ( skipPrompt ) {
70+ return true ;
71+ }
72+
6873 let result : boolean | undefined = undefined ;
6974
7075 while ( result === undefined ) {
You can’t perform that action at this time.
0 commit comments