Dear community, Started using java on vs code, but seems launch.test.json does not work for me. I added such options: ``` { "run": { "default": "", "items": [ { "name": "MyLib", "projectName": "MyLib", "workingDirectory": "c:\\Users\\User\\MyLib", "args": ["-Xms2G","-Xmx2G"], "vmargs": ["-Xms2G","-Xmx2G"], "env": {}, "preLaunchTask": "" } ] }, "debug": { "default": "", "items": [ { "name": "MyLib", "projectName": "MyLib", "workingDirectory": "c:\\Users\\User\\MyLib", "args": ["-Xms2G","-Xmx2G"], "vmargs": ["-Xms2G","-Xmx2G"], "env": {}, "preLaunchTask": "" } ] } } ``` But after running test java does not take either args or vmargs to consideration.
Activity
akaFalsh commentedon Nov 29, 2018
for launch.json everything works fine, but for Tests does not.
I am using VS Code 1.29.1 latest java test runner
jdneo commentedon Nov 30, 2018
If you are triggering the test from Code Lens. You need to set the default field to the configuration item name to make it work.
For example, here set the
defaulttoMyLibjdneo commentedon Jan 22, 2019
Closing this issue since the experience of running/debugging with configuration has been changed.
More details can be found here: https://aka.ms/java-test-config