mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Fix type assertions and formatting in DirectiveStreamingParser.ts
This commit is contained in:
parent
7d880f172e
commit
36c993bed3
1 changed files with 2 additions and 2 deletions
|
|
@ -124,9 +124,9 @@ export class DirectiveStreamingParser {
|
|||
private static isInsideCodeBlock(context: ParseContext, activeHandler: DirectiveHandler | null): boolean {
|
||||
return (
|
||||
context.codeBlockState === CodeBlockState.INSIDE ||
|
||||
(activeHandler &&
|
||||
(!!activeHandler &&
|
||||
activeHandler instanceof ToolDirectiveHandler &&
|
||||
(activeHandler as ParameterCodeBlockHandler).isInsideParameterCodeBlock())
|
||||
!!(activeHandler as ParameterCodeBlockHandler).isInsideParameterCodeBlock())
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue