Skip to content

Add debug/toolbar button to reload changed classes#586

Merged
testforstephen merged 4 commits intomasterfrom
jinbo_hcr
May 28, 2019
Merged

Add debug/toolbar button to reload changed classes#586
testforstephen merged 4 commits intomasterfrom
jinbo_hcr

Conversation

@testforstephen
Copy link
Copy Markdown
Contributor

@testforstephen testforstephen commented May 23, 2019

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

Add a new debug settings java.debug.settings.hotCodeReplace to control how to trigger HCR. Defaults to manual.

  • manual - Click the toolbar to apply the changes.
    image
  • auto - Automatically apply the changes after compilation. This is the old behavior.
  • never - Never apply the changes.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Comment thread README.md Outdated
Comment thread src/extension.ts
"The hot code replace feature requires you to enable the autobuild flag, do you want to enable it?",
"Yes", "No");
if (ans === "Yes") {
await autobuildConfig.update("enabled", true);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What happen after enable it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

current hcr doesn't take effect, you need click again.

Signed-off-by: Jinbo Wang <jinbwan@microsoft.com>
Comment thread package.json
],
"engines": {
"vscode": "^1.22.0"
"vscode": "^1.32.0"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When is the features introduced in vscode for additional icons in debug toolbar?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, 1.32 add the support to extend the debug toolbar buttons.

@testforstephen testforstephen merged commit f79664c into master May 28, 2019
@testforstephen testforstephen deleted the jinbo_hcr branch May 28, 2019 02:42
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.

[HCR] Action button to apply code changes to running app

2 participants