Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only do rebuild for single file #176

Merged
merged 1 commit into from
Nov 28, 2017
Merged

Conversation

ansyral
Copy link
Contributor

@ansyral ansyral commented Nov 24, 2017

Signed-off-by: xuzho xuzho@microsoft.com

  1. rebuild only for single file
  2. fix regression of multi-root
  3. for single file, if its build fails, would ask user to choose whether to proceed. currently, if abort the launch for single file, vscode would pop up an error message "cannot read property openconfigfile of undefined", i've opened an issue to track

Signed-off-by: xuzho <xuzho@microsoft.com>
@@ -34,7 +34,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
return vscode.window.withProgress({location: vscode.ProgressLocation.Window}, (p) => {
return new Promise((resolve, reject) => {
p.report({message: "Auto generating configuration..."});
resolveMainClass(folder.uri).then((res: any[]) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

In which case the folder in empty? Single file?

Does the java-debug also should be changed for this changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if client only opens a file, the folder is undefined. java-debug has handled this.

@ansyral
Copy link
Contributor Author

ansyral commented Nov 27, 2017

verified the issue is fixed in vscode insider

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