Skip to content

Add grammar E2E tests for PartialCompletionSession#2098

Merged
curtisman merged 1 commit intomicrosoft:mainfrom
curtisman:e2e
Mar 29, 2026
Merged

Add grammar E2E tests for PartialCompletionSession#2098
curtisman merged 1 commit intomicrosoft:mainfrom
curtisman:e2e

Conversation

@curtisman
Copy link
Copy Markdown
Member

Exercise the real grammar matcher through PartialCompletionSession with mocked entity data. Two grammars (music, settings) drive scenarios for:

  • Keyword completions and trie narrowing
  • Keyword → entity transitions with separator deferral
  • Multi-level hierarchy (entity → keyword → entity)
  • Open wildcard / anchor sliding
  • Direction sensitivity (backward re-fetch at anchor)
  • getCompletionPrefix public API

Also adds action-grammar as a shell devDependency for the grammar imports.

Exercise the real grammar matcher through PartialCompletionSession with
mocked entity data.  Two grammars (music, settings) drive scenarios for:

- Keyword completions and trie narrowing
- Keyword → entity transitions with separator deferral
- Multi-level hierarchy (entity → keyword → entity)
- Open wildcard / anchor sliding
- Direction sensitivity (backward re-fetch at anchor)
- getCompletionPrefix public API

Adds action-grammar as a shell devDependency for the grammar imports.
@curtisman curtisman enabled auto-merge March 29, 2026 16:56
@curtisman curtisman added this pull request to the merge queue Mar 29, 2026
Merged via the queue into microsoft:main with commit 4fea020 Mar 29, 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