make /break and /breakpoint show up properly with autocomplete details
This commit is contained in:
parent
0994de63b7
commit
b730aac8f7
|
@ -700,24 +700,28 @@ export class SlashCommandParser {
|
||||||
return this.testSymbol(/\/breakpoint\s*\|/);
|
return this.testSymbol(/\/breakpoint\s*\|/);
|
||||||
}
|
}
|
||||||
parseBreakPoint() {
|
parseBreakPoint() {
|
||||||
const bp = new SlashCommandBreakPoint();
|
const cmd = new SlashCommandBreakPoint();
|
||||||
bp.start = this.index + 1;
|
cmd.name = 'breakpoint';
|
||||||
|
cmd.command = this.commands['breakpoint'];
|
||||||
|
cmd.start = this.index + 1;
|
||||||
this.take('/breakpoint'.length);
|
this.take('/breakpoint'.length);
|
||||||
bp.end = this.index;
|
cmd.end = this.index;
|
||||||
this.commandIndex.push(bp);
|
this.commandIndex.push(cmd);
|
||||||
return bp;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
testBreak() {
|
testBreak() {
|
||||||
return this.testSymbol(/\/break(\s|\||$)/);
|
return this.testSymbol(/\/break(\s|\||$)/);
|
||||||
}
|
}
|
||||||
parseBreak() {
|
parseBreak() {
|
||||||
const b = new SlashCommandBreak();
|
const cmd = new SlashCommandBreak();
|
||||||
b.start = this.index + 1;
|
cmd.name = 'break';
|
||||||
|
cmd.command = this.commands['break'];
|
||||||
|
cmd.start = this.index + 1;
|
||||||
this.take('/break'.length);
|
this.take('/break'.length);
|
||||||
b.end = this.index;
|
cmd.end = this.index;
|
||||||
this.commandIndex.push(b);
|
this.commandIndex.push(cmd);
|
||||||
return b;
|
return cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
testComment() {
|
testComment() {
|
||||||
|
|
Loading…
Reference in New Issue