File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
src/lsptoolshost/debugger Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -53,18 +53,26 @@ export function registerDebugger(
5353 ) ;
5454
5555 context . subscriptions . push (
56- vscode . commands . registerCommand ( 'dotnet.generateAssets' , async ( selectedIndex ) => {
57- if ( ! ( await promptForDevKitDebugConfigurations ( ) ) ) {
58- return ;
59- }
56+ vscode . commands . registerCommand (
57+ 'dotnet.generateAssets' ,
58+ async ( selectedIndex : number , options : { skipPrompt ?: boolean } = { } ) => {
59+ if ( ! ( await promptForDevKitDebugConfigurations ( options ) ) ) {
60+ return ;
61+ }
6062
61- await generateAssets ( workspaceInformationProvider , selectedIndex ) ;
62- } )
63+ await generateAssets ( workspaceInformationProvider , selectedIndex ) ;
64+ }
65+ )
6366 ) ;
6467}
6568
66- async function promptForDevKitDebugConfigurations ( ) : Promise < boolean > {
69+ async function promptForDevKitDebugConfigurations ( options : { skipPrompt ?: boolean } ) : Promise < boolean > {
6770 if ( getCSharpDevKit ( ) ) {
71+ // If skipPrompt is true, proceed with generating assets without showing the dialog
72+ if ( options . skipPrompt ) {
73+ return true ;
74+ }
75+
6876 let result : boolean | undefined = undefined ;
6977
7078 while ( result === undefined ) {
You can’t perform that action at this time.
0 commit comments