Skip to content

Fix syntax highlighting lost after composite step in Lifecycle: Before#1002

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-structure-highlighting-issue
Draft

Fix syntax highlighting lost after composite step in Lifecycle: Before#1002
Copilot wants to merge 4 commits into
mainfrom
copilot/fix-structure-highlighting-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 21, 2026

  • Fix lifecycle while group 4 pattern to include And step keyword and use Given(?!Stories) negative lookahead
  • Replace include: #step in lifecycle whileCaptures[4] with an inline match pattern to prevent the step rule's multiline while clause from interfering with the lifecycle rule's while evaluation
  • Revert unintended package-lock.json changes

Copilot AI and others added 2 commits April 21, 2026 09:26
Agent-Logs-Url: https://github.com/vividus-framework/vividus-studio/sessions/28ddb7e9-9086-419c-a335-94b212afb376

Co-authored-by: valfirst <5081226+valfirst@users.noreply.github.com>
…n Lifecycle: Before

The lifecycle rule's whileCaptures[4] previously used `include: #step` which is
a begin/while rule. When its begin matched a step line inside lifecycle, the step
rule's while clause evaluated subsequent lines, interfering with lifecycle's own
while evaluation and causing the lifecycle block to terminate prematurely.

The fix replaces the step rule inclusion with an inline match pattern that provides
identical highlighting without multiline while behavior. Also adds missing `And`
step keyword support and `Given(?!Stories)` negative lookahead to lifecycle's while
group 4 pattern.

Agent-Logs-Url: https://github.com/vividus-framework/vividus-studio/sessions/28ddb7e9-9086-419c-a335-94b212afb376

Co-authored-by: valfirst <5081226+valfirst@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix structure highlighting disappearance issue in composite step Fix syntax highlighting lost after composite step in Lifecycle: Before Apr 21, 2026
Copilot AI requested a review from valfirst April 21, 2026 09:30
Comment thread package-lock.json
Copilot AI requested a review from valfirst April 21, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In VSCode vividus plugin structure highlighting disappears if the composite step is specified in Lifecycle: Before

2 participants