Skip to content

Commit

Permalink
Add schema to hintOptions (#7342)
Browse files Browse the repository at this point in the history
  • Loading branch information
gatzjames authored Apr 30, 2024
1 parent 2cac8a2 commit 733f4e3
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { LintOptions, ShowHintOptions, TextMarker } from 'codemirror';
import { GraphQLInfoOptions } from 'codemirror-graphql/info';
import { ModifiedGraphQLJumpOptions } from 'codemirror-graphql/jump';
import type { GraphQLHintOptions } from 'codemirror-graphql/hint';
import type { GraphQLInfoOptions } from 'codemirror-graphql/info';
import type { ModifiedGraphQLJumpOptions } from 'codemirror-graphql/jump';
import type { OpenDialogOptions } from 'electron';
import { readFileSync } from 'fs';
import { DefinitionNode, DocumentNode, GraphQLNonNull, GraphQLSchema, Kind, NonNullTypeNode, OperationDefinitionNode, parse, typeFromAST } from 'graphql';
Expand Down Expand Up @@ -430,7 +431,7 @@ export const GraphQLEditor: FC<Props> = ({
}

let graphqlOptions: {
hintOptions: ShowHintOptions;
hintOptions: GraphQLHintOptions & ShowHintOptions;
infoOptions: GraphQLInfoOptions;
jumpOptions: ModifiedGraphQLJumpOptions;
lintOptions: LintOptions;
Expand All @@ -449,6 +450,7 @@ export const GraphQLEditor: FC<Props> = ({
graphqlOptions = {
hintOptions: {
completeSingle: false,
schema,
},
infoOptions: {
schema,
Expand Down

0 comments on commit 733f4e3

Please sign in to comment.