check that debugController exists
This commit is contained in:
parent
ed54ee1808
commit
50cba9622c
|
@ -275,9 +275,11 @@ export class SlashCommandClosure {
|
|||
let isFirst = true;
|
||||
for (const executor of this.executorList) {
|
||||
this.onProgress?.(done, this.commandCount);
|
||||
this.debugController?.setExecutor(executor);
|
||||
this.debugController.namedArguments = undefined;
|
||||
this.debugController.unnamedArguments = undefined;
|
||||
if (this.debugController) {
|
||||
this.debugController.setExecutor(executor);
|
||||
this.debugController.namedArguments = undefined;
|
||||
this.debugController.unnamedArguments = undefined;
|
||||
}
|
||||
// yield before doing anything with this executor, the debugger might want to do
|
||||
// something with it (e.g., breakpoint, immediate closures that need resolving
|
||||
// or stepping into)
|
||||
|
|
Loading…
Reference in New Issue