Skip to content

Commit 6e72b72

Browse files
featuressss
1 parent 15f7db1 commit 6e72b72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/pgt_completions/src/relevance/filtering.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl CompletionFilter<'_> {
9999
CompletionRelevanceData::Table(_) => match clause {
100100
WrappingClause::From | WrappingClause::Update => true,
101101

102-
WrappingClause::RevokeStatement => ctx
102+
WrappingClause::RevokeStatement | WrappingClause::GrantStatement => ctx
103103
.matches_ancestor_history(&["grantable_on_table", "object_reference"]),
104104

105105
WrappingClause::Join { on_node: None } => true,
@@ -205,7 +205,7 @@ impl CompletionFilter<'_> {
205205
| WrappingClause::Update
206206
| WrappingClause::Delete => true,
207207

208-
WrappingClause::RevokeStatement => {
208+
WrappingClause::RevokeStatement | WrappingClause::GrantStatement => {
209209
(ctx.matches_ancestor_history(&[
210210
"grantable_on_table",
211211
"object_reference",

0 commit comments

Comments
 (0)