Skip to content

feat: add Code Lens "N references" for Flex abbreviations (closes #39)#42

Merged
theodevelop merged 3 commits into
devfrom
feat/issue-39
Apr 5, 2026
Merged

feat: add Code Lens "N references" for Flex abbreviations (closes #39)#42
theodevelop merged 3 commits into
devfrom
feat/issue-39

Conversation

@theodevelop
Copy link
Copy Markdown
Owner

Type of change

  • New feature

What does this PR do?

Adds "N references" Code Lens entries for Flex abbreviation definitions,
consistent with the existing Code Lens for start conditions and Bison rules.

Each abbreviation declared in the definitions section now shows a clickable
"N references" lens that opens the References panel pointing to every
{ABBR} usage in the rules section (including transitive usages recorded
since v1.5.2).

Related issue

Closes #39

How to test manually

  • Open any .l file with abbreviation definitions → each abbreviation line
    shows "N references" above it.
  • Click the lens → References panel opens with all {ABBR} occurrences.
  • An unused abbreviation shows "0 references".

Checklist

  • npm run compile passes with no new errors
  • Tests added (211 passed, 0 failed)
  • Manual test done in VS Code
  • CHANGELOG.md updated
  • No unintended files staged

@theodevelop theodevelop self-assigned this Apr 5, 2026
@theodevelop theodevelop added the enhancement New feature or request label Apr 5, 2026
@theodevelop theodevelop merged commit 614f856 into dev Apr 5, 2026
1 check passed
@theodevelop theodevelop deleted the feat/issue-39 branch April 5, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant