Hot Code replacement popup - "Don't show again"-button doesn't work
The button Don't show again button of the "hot code replacement warning" dialog doesn't work correctly. It always keeps reappearing. Furthermore multiple warnings are shown next to each other - which is a total overkill. At least the dialogs should be replaced, better even would be to hide them after some time (an assume the default action).
Environment
- Operating System: macOS 11.5.2 (20G95)
- JDK version: openjdk version "15" 2020-09-15
- Visual Studio Code version: 1.60.0-insider (also true for the regular version)
- Java extension version: v0.18.4
- Java Debugger extension version: v0.35.0
Steps To Reproduce
- Change code in a running app, that causes the popup to appear
- Click
Don't show again - Change code in a running app, that causes the popup to appear
Current Result
Popup is shown again, despite the fact that I clicked Don't show again
Expected Result
Popup does never ever again appear.
Currently "Don't show again" button is only taking effect in current debug session. And this button only suppresses the cause of the same failure in the current debug session. Once the debug session is terminated, it will clear the "Don't show again" status, and reappear again with a new debug session.
When HCR fails, reporting failure is necessary. Suppressing it forever might not be a good idea.
Hi @mojo2012, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Suggestions
-
Bypass the warning dialog by setting the launch configuration attribute
hotCodeReplacetoalways(ornever) instead of the defaultprompt. This completely suppresses the “Don’t show again” prompt:// .vscode/launch.json { "type": "java", "request": "launch", "mainClass": "com.example.App", "projectName": "demo", // automatically reload changed classes without prompting "hotCodeReplace": "always" }See the Java Debugger README for details: https://github.com/microsoft/java-debug/blob/main/README.md#configuration
-
If you still see repeated dialogs with the latest stable, try the nightly build of the Java Debugger extension where this issue may be addressed already.
Duplicate
No existing issue matches this exact bug.
Other references with high confidence
- For unsupported HCR case, should show “Continue” and “Terminate” button
UX discussion around the HCR failure dialog (includes mention of “Not show again” button):
https://github.com/microsoft/vscode-java-debug/issues/233
Other references with low confidence
- (none)
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!