* Add an user setting to control whether to build the workspace before debuging
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Add Chinese translation for the new setting
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Support Chinese Locale for launch configurations
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix Chinese translation per review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Refine the launch json
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Remove the unimportant options from default launch.json
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Add way to disable run and debug code lens provider
There are cases where it will never work properly, and it is confusing a chunk of my users that attempt to use it, and wonder why it fails
Closes#464
* Add translation support
* Add type to lambda
* Add period to description
* resolveDebugConfiguration returns null to tell vscode to continue generating launch.json
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Use truthy to check the value is empty or not
* Use Language Server consistent java home to launch debuggee
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* refactor checkJavaHome to getJavaHome
* Fix the display order and icon issues for main class prompt wizard
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix review comments
* Add return type for the function declaration
* fix the code format
* use _.get to guard the undefined case\
* Use codeLens to run Java program
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Move codeLens action name to local constants
* use lodash _.flatten to flatten the codeLens result
* Add return statement
* Validate mainClass and projectName before launch
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix review comments
1. Better naming about validate and fix mainClass and ProjectName.
2. Use lodash library to find the debug configuration index from the
workspaceConfiguration list.
* Revert 'errorMessage' to the neutral 'message' for IValidationResult scheme
* Pass containsExternalClasspaths flag to the mainClass validator
* Correct the learn more link for mainClass configError
* Fix learn more link for mainClass configError
* Remove extra empty line
* Use lodash _.isEmpty to check empty array
* Use try/catch to handle the rejected/exceptional case
* Robustness: judge no launch.json exists.
* Use a common function to judge an empty config.
* Update configurationProvider.ts
* Update configurationProvider.ts
* Add comments to reduce ambiguity.
* Put recently used main class in the top
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Refactor the History interface to an accurate name
* Combine all the boolean operations in one statement
* Rename getId to getKey to keep properties consistent
* Learn More link to the corresponding troubleshooting paragraph directly
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Update LS troubleshooting anchor point
* make tslint happy
* Give a meaningful sample message instead of xyz
* Refactor IMessage interface
* Update the words for "Update project configuration"
Java:Update Project configuration (Shift+Alt+U): is available when the editor is focused on a Maven pom.xml or a Gradle file. It forces project configuration / classpath updates (eg. dependency changes or Java compilation level), according to the project build descriptor.
* Update the goal of "Update project configuration" per review