Skip to content

Conversation

@testforstephen
Copy link
Contributor

Signed-off-by: Jinbo Wang jinbwan@microsoft.com

Fix the bug microsoft/vscode-java-debug#110.

Provide two kinds of approaches jarmanifest and argfile to shorten the command line length.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Copy link
Member

@Eskibear Eskibear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@testforstephen testforstephen merged commit d3b8b3a into master Feb 15, 2019
@testforstephen testforstephen deleted the jinbo_cli branch February 15, 2019 05:27
}

try {
Thread.sleep(1000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TimeUnit.SECONDS.sleep(1);


activeLaunchHandler.preLaunch(launchArguments, context);

Path tempfile = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body of this function is already long. Please refactor by putting the procedures of generating Jar Manifest and ArgFile into different utility functions. Those functions should be functional without referencing states from other parts. After that the body looks like:

if (launchArguments.shortenCommandLine == ShortenApproach.JARMANIFEST) {
    Path path = AdapterUtils.generateClasspathJar(...);
    context.setClasspathJar(path);
} else if (...) {
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants