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(
53
53
) ;
54
54
55
55
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
+ }
60
62
61
- await generateAssets ( workspaceInformationProvider , selectedIndex ) ;
62
- } )
63
+ await generateAssets ( workspaceInformationProvider , selectedIndex ) ;
64
+ }
65
+ )
63
66
) ;
64
67
}
65
68
66
- async function promptForDevKitDebugConfigurations ( ) : Promise < boolean > {
69
+ async function promptForDevKitDebugConfigurations ( options : { skipPrompt ?: boolean } ) : Promise < boolean > {
67
70
if ( getCSharpDevKit ( ) ) {
71
+ // If skipPrompt is true, proceed with generating assets without showing the dialog
72
+ if ( options . skipPrompt ) {
73
+ return true ;
74
+ }
75
+
68
76
let result : boolean | undefined = undefined ;
69
77
70
78
while ( result === undefined ) {
You can’t perform that action at this time.
0 commit comments