Skip to content

[FSQL] Add @allow directive quick fix and completion provider#10436

Open
mtr002 wants to merge 2 commits intomainfrom
mtr-lsp
Open

[FSQL] Add @allow directive quick fix and completion provider#10436
mtr002 wants to merge 2 commits intomainfrom
mtr-lsp

Conversation

@mtr002
Copy link
Copy Markdown
Contributor

@mtr002 mtr002 commented Apr 29, 2026

Description

Scenarios Tested

Sample Commands

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces autocomplete support and diagnostics for the @Allow directive in Firebase Data Connect, including a new completion provider, a schema-parsing service, and quick fixes for missing directives. Feedback identifies several performance and architectural improvements: replacing synchronous file system operations with asynchronous ones to avoid blocking the extension host, optimizing AST parsing for completions and diagnostics, refining the field tokenizer to correctly handle GraphQL punctuation, and consolidating duplicated utility functions for unwrapping GraphQL types.

Comment thread firebase-vscode/src/data-connect/allow-directive-service.ts
Comment thread firebase-vscode/src/data-connect/allow-directive-service.ts
Comment thread firebase-vscode/src/data-connect/allow-directive-completion.ts Outdated
Comment thread firebase-vscode/src/data-connect/allow-directive-completion.ts
Comment thread firebase-vscode/src/data-connect/allow-directive-completion.ts Outdated
Comment thread firebase-vscode/src/data-connect/index.ts
@mtr002 mtr002 force-pushed the mtr-lsp branch 2 times, most recently from 6fafa67 to c51c32d Compare April 30, 2026 17:36
…ostics for mutations with _Data variables
@mtr002 mtr002 marked this pull request as ready for review May 5, 2026 21:32
@mtr002 mtr002 requested a review from hlshen May 5, 2026 21:32
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.

2 participants