* 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
* Enable bot to manage long inactivity issues
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Update the config file for no-response bot
* Fix the line break issue
* Add a troubleshooting page for the frequently asked errors
* Update the wrong link and remove the unnecessary separator
* Update Troubleshooting.md
* Make tslint happy
* Refine the words per review
* Add the missing items parameter for showErrorMessage function
* Log the troubleshooting usage
* Add a reference in README to link to troubleshooting page
* Update the fix steps for illegal request type error
* Refine the description words for differnt errors
* Add jdk troubleshooting item
* Add a link to submit an issue
* Add compilation as a try step for ClassNotFoundException
* Add the missing license header
* Resolve the review comments for troubleshooting doc
* Extract dup code to a helper function
* Merge activation event to usage data
* Refactor showMessage utility method
* Add opn to dependency list
* update package-lock.json