Selaa lähdekoodia

Check for debugging enabled when setting the session

Jeremy Tuloup 5 vuotta sitten
vanhempi
commit
2dba59a8aa
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/index.ts

+ 3 - 1
src/index.ts

@@ -80,7 +80,9 @@ async function setDebugSession(
   } else {
     debug.session.client = client;
   }
-  await debug.restoreState(true);
+  if (debug.isDebuggingEnabled) {
+    await debug.restoreState(true);
+  }
   app.commands.notifyCommandChanged();
 }