File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -88,12 +88,14 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
8888 await updateDebugSettings ( ) ;
8989 }
9090
91- // just create and open the lanuch.json if there is no lanch.json in current folder
91+ /**
92+ * If no launch.json exists in the current workspace folder
93+ * delegate to provideDebugConfigurations api to generate the initial launch.json configurations
94+ */
9295 if ( Object . keys ( config ) . length === 0 && folder !== undefined ) {
9396 return config ;
9497 }
95-
96- // generate config in memory if there is noly single file and no launch.json
98+ // If it's the single file case that no workspace folder is opened, generate debug config in memory
9799 if ( Object . keys ( config ) . length === 0 && ! folder ) {
98100 config . type = "java" ;
99101 config . name = "Java Debug" ;
@@ -161,7 +163,6 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
161163 }
162164 } else {
163165 const ans = await vscode . window . showErrorMessage (
164- // tslint:disable-next-line:max-line-length
165166 "Request type \"" + config . request + "\" is not supported. Only \"launch\" and \"attach\" are supported." , "Open launch.json" ) ;
166167 if ( ans === "Open launch.json" ) {
167168 await vscode . commands . executeCommand ( commands . VSCODE_ADD_DEBUGCONFIGURATION ) ;
You can’t perform that action at this time.
0 commit comments