Selaa lähdekoodia

Debugger: acknowledge setExceptionBreakpoints with an empty set

- Theia sends this optional request on every session start; answering
  success avoids a spurious error in the backend log
- ignore compiler output directories (bin/)
Eric Streit 1 viikko sitten
vanhempi
commit
0bfc91b53b
2 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 1 0
      .gitignore
  2. 5 0
      extensions/modula2-debug/src/adapter/gdb-adapter.ts

+ 1 - 0
.gitignore

@@ -7,3 +7,4 @@ dist/
 .browser_modules/
 *.log
 .DS_Store
+bin/

+ 5 - 0
extensions/modula2-debug/src/adapter/gdb-adapter.ts

@@ -302,6 +302,11 @@ class Adapter {
         return;
       case 'launch': void this.onLaunch(req, a); return;
       case 'setBreakpoints': void this.onSetBreakpoints(req, a); return;
+      case 'setExceptionBreakpoints':
+        // No exception breakpoints in Modula-2: acknowledge with an empty set
+        // so Theia doesn't log a spurious error on every session start.
+        this.respond(req, { breakpoints: [] });
+        return;
       case 'configurationDone': void this.onConfigurationDone(req); return;
       case 'threads': void this.onThreads(req); return;
       case 'stackTrace': void this.onStackTrace(req, a); return;