* Add a global setting to specify the default console to launch the program
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Address review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Auto add --enable-preview vmArgs for java 12 project
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* make tslint happy
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Use new generic api to check project preview flag
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Address review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Make tslint happy
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Provide jarmainifest/argfile approachs to shorten the command line
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Add new launch.json config to README
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix the localizable words per comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Add auto mode to auto detect the right approach to shorten command line
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* fix build error
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Address the review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Differentiate the command line length limit for different OS
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* 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>
* 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>
* 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
* 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
* doesn't popup error message when user cancels the main class selection.
* add detailed type declaration
* remove the useless check, since pickItems.length will always be larger than 0
* doesn't popup error message when user cancels the main class selection.
* remove trailing spacess.
* Define launchInTerminal config in launch.json
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Support stopOnEntry and launchInTerminal in launch.json
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* Fix review comments
* fix review comments
* 1. watch user settings for changed event, apply it when change happens
2. get debug settings from user settings and send it to debuggee
* change settings names
* merge log level to other settings.
* update desc to debug settings.
* update description for better clause
* update description for better clause
* fix typo
* update description for better clause
* build workspace before trigger debug and support single file debug
Signed-off-by: xuzho <xuzho@microsoft.com>
* update requirement
Signed-off-by: xuzho <xuzho@microsoft.com>
* Customize launching connector to support cwd and enviroment variable
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* disable tslint rule for 'Interpolation will only work for template strings' error
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* fix feature break from October VSCode insider
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* fix review comments
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* showErrorMessage API only supports printing a string variable and throw exception for Object
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
* remove unnecessary log
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>