Skip to content

Commit 39e656f

Browse files
Prompt a message if no changed classes found for hcr (#590)
* Prompt a message if no changed classes found for hcr Signed-off-by: Jinbo Wang <[email protected]> * Refine the message Signed-off-by: Jinbo Wang <[email protected]> * Refine the error message Signed-off-by: Jinbo Wang <[email protected]>
1 parent f79664c commit 39e656f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/extension.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ function initializeExtension(operationId: string, context: vscode.ExtensionConte
6868

6969
return vscode.window.withProgress({ location: vscode.ProgressLocation.Window }, async (progress) => {
7070
progress.report({ message: "Applying code changes..." });
71-
return await debugSession.customRequest("redefineClasses");
71+
72+
const response = await debugSession.customRequest("redefineClasses");
73+
if (!response || !response.changedClasses || !response.changedClasses.length) {
74+
vscode.window.showWarningMessage("Cannot find any changed classes for hot replace!");
75+
}
7276
});
7377
}));
7478
initializeHotCodeReplace(context);

0 commit comments

Comments
 (0)