File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,16 @@ async function applyHCR(hcrStatusBar: NotificationBar) {
184184 }
185185
186186 hcrStatusBar . show ( "$(sync~spin)Applying code changes..." ) ;
187+ const start = new Date ( ) . getTime ( ) ;
187188 const response = await debugSession . customRequest ( "redefineClasses" ) ;
189+ const elapsed = new Date ( ) . getTime ( ) - start ;
190+ const humanVisibleDelay = elapsed < 150 ? 150 : 0 ;
191+ if ( humanVisibleDelay ) {
192+ await new Promise ( ( resolve ) => {
193+ setTimeout ( resolve , humanVisibleDelay ) ;
194+ } ) ;
195+ }
196+
188197 if ( response && response . errorMessage ) {
189198 // The detailed error message is handled by hotCodeReplace#handleHotCodeReplaceCustomEvent
190199 hcrStatusBar . clear ( ) ;
@@ -198,7 +207,7 @@ async function applyHCR(hcrStatusBar: NotificationBar) {
198207 }
199208
200209 const changed = response . changedClasses . length ;
201- hcrStatusBar . show ( "$(check)" + `${ changed } changed class${ changed > 1 ? "es are" : " is" } reloaded! ` , 5 * 1000 ) ;
210+ hcrStatusBar . show ( "$(check)" + `${ changed } changed class${ changed > 1 ? "es are" : " is" } reloaded` , 5 * 1000 ) ;
202211}
203212
204213async function runJavaFile ( uri : vscode . Uri , noDebug : boolean ) {
You can’t perform that action at this time.
0 commit comments