Skip to content

Commit 4f62a8f

Browse files
authored
fix: regression for variable def completion #1622 (#1624)
impacts graphiql, codemirror-graphql, monaco-graphql, and the lsp server. non null list types as variables had a parser bugfix, and we overlooked how that impacted code completion for variable definitions
1 parent 1b8fe31 commit 4f62a8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/graphql-language-service-interface/src/getAutocompleteSuggestions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ export function getAutocompleteSuggestions(
186186
(kind === RuleKinds.NAMED_TYPE &&
187187
state.prevState &&
188188
(state.prevState.kind === RuleKinds.VARIABLE_DEFINITION ||
189-
state.prevState.kind === RuleKinds.LIST_TYPE))
189+
state.prevState.kind === RuleKinds.LIST_TYPE ||
190+
state.prevState.kind === RuleKinds.NON_NULL_TYPE))
190191
) {
191192
return getSuggestionsForVariableDefinition(token, schema, kind);
192193
}

0 commit comments

Comments
 (0)