Skip to content

refactor: extract grammarCompletion.ts from grammarMatcher.ts#2084

Merged
curtisman merged 1 commit intomicrosoft:mainfrom
curtisman:curtism/extract-grammar-completion
Mar 26, 2026
Merged

refactor: extract grammarCompletion.ts from grammarMatcher.ts#2084
curtisman merged 1 commit intomicrosoft:mainfrom
curtisman:curtism/extract-grammar-completion

Conversation

@curtisman
Copy link
Copy Markdown
Member

Move the completion system (matchGrammarCompletion, GrammarCompletionResult, and all supporting completion functions) into a dedicated grammarCompletion.ts module.

Changes

  • New file: packages/actionGrammar/src/grammarCompletion.ts — contains all completion logic previously in grammarMatcher.ts
  • Updated exports in index.ts to re-export from the new module
  • Fixed imports in nfaCompletion.ts and testUtils.ts
  • Updated documentation in README.md, NFA_README.md, and docs/architecture/actionGrammar.md to reference the new file

Move the completion system (matchGrammarCompletion, GrammarCompletionResult,
and all supporting completion functions) into a dedicated grammarCompletion.ts
module. Update exports in index.ts, fix imports in nfaCompletion.ts and
testUtils.ts, and update documentation references across README.md,
NFA_README.md, and actionGrammar.md.
@curtisman curtisman enabled auto-merge March 26, 2026 22:32
@curtisman curtisman added this pull request to the merge queue Mar 26, 2026
Merged via the queue into microsoft:main with commit 34e445c Mar 26, 2026
13 of 15 checks passed
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.

1 participant