mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Add configuration options to extension
This commit is contained in:
@@ -183,6 +183,7 @@ export type DebugAdapterEventMap = InspectorEventMap & {
|
||||
"Adapter.response": [DAP.Response];
|
||||
"Adapter.event": [DAP.Event];
|
||||
"Adapter.error": [Error];
|
||||
"Adapter.reverseRequest": [DAP.Request];
|
||||
} & {
|
||||
"Process.requested": [unknown];
|
||||
"Process.spawned": [ChildProcess];
|
||||
@@ -325,6 +326,15 @@ export class DebugAdapter extends EventEmitter<DebugAdapterEventMap> implements
|
||||
});
|
||||
}
|
||||
|
||||
#reverseRequest<T extends keyof DAP.RequestMap>(command: T, args?: DAP.RequestMap[T]): void {
|
||||
this.emit("Adapter.reverseRequest", {
|
||||
type: "request",
|
||||
seq: 0,
|
||||
command,
|
||||
arguments: args,
|
||||
});
|
||||
}
|
||||
|
||||
async ["Adapter.request"](request: DAP.Request): Promise<void> {
|
||||
const { command, arguments: args } = request;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user