@@ -247,6 +247,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
247247 return config ;
248248 } else {
249249 // Information for diagnostic:
250+ // tslint:disable-next-line:no-console
250251 console . log ( "Cannot find a port for debugging session" ) ;
251252 throw new Error ( "Failed to start debug server." ) ;
252253 }
@@ -302,21 +303,21 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
302303 if ( mainEntries . length === 1 ) {
303304 return mainEntries [ 0 ] ;
304305 } else if ( mainEntries . length > 1 ) {
305- return await this . showMainClassQuickPick ( this . formatMainClassOptions ( mainEntries ) ,
306+ return this . showMainClassQuickPick ( this . formatMainClassOptions ( mainEntries ) ,
306307 `Multiple main classes found in the file '${ path . basename ( currentFile ) } ', please select one first.` ) ;
307308 }
308309 }
309310
310311 const hintMessage = currentFile ?
311312 `No main class found in the file '${ path . basename ( currentFile ) } ', please select main class<project name> again.` :
312313 "Please select main class<project name>." ;
313- return await this . promptMainClass ( folder , hintMessage ) ;
314+ return this . promptMainClass ( folder , hintMessage ) ;
314315 }
315316
316317 const containsExternalClasspaths = ! _ . isEmpty ( config . classPaths ) || ! _ . isEmpty ( config . modulePaths ) ;
317318 const validationResponse = await lsPlugin . validateLaunchConfig ( folder , config . mainClass , config . projectName , containsExternalClasspaths ) ;
318319 if ( ! validationResponse . mainClass . isValid || ! validationResponse . projectName . isValid ) {
319- return await this . fixMainClass ( folder , config , validationResponse ) ;
320+ return this . fixMainClass ( folder , config , validationResponse ) ;
320321 }
321322
322323 return {
@@ -504,11 +505,13 @@ async function updateDebugSettings() {
504505 const javaHome = await utility . getJavaHome ( ) ;
505506 if ( debugSettingsRoot . settings && Object . keys ( debugSettingsRoot . settings ) . length ) {
506507 try {
508+ // tslint:disable-next-line:no-console
507509 console . log ( "settings:" , await commands . executeJavaLanguageServerCommand ( commands . JAVA_UPDATE_DEBUG_SETTINGS , JSON . stringify (
508510 { ...debugSettingsRoot . settings , logLevel, javaHome } ) ) ) ;
509511 } catch ( err ) {
510512 // log a warning message and continue, since update settings failure should not block debug session
511- console . log ( "Cannot update debug settings." , err )
513+ // tslint:disable-next-line:no-console
514+ console . log ( "Cannot update debug settings." , err ) ;
512515 }
513516 }
514517}
0 commit comments