Skip to content

Commit

Permalink
use internal suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Dec 9, 2023
1 parent 6e0b8cd commit 0dd250d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-poems-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@0no-co/graphqlsp': minor
---

Use our internal suggestions algo for better arugments and spread-suggestions
3 changes: 3 additions & 0 deletions packages/graphqlsp/src/autoComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export function getGraphQLCompletions(
schema: { current: GraphQLSchema | null },
info: ts.server.PluginCreateInfo
): ts.WithMetadata<ts.CompletionInfo> | undefined {
const logger: any = (msg: string) =>
info.project.projectService.logger.info(`[GraphQLSP] ${msg}`);

const tagTemplate = info.config.template || 'gql';
const isCallExpression = info.config.templateIsCallExpression ?? false;

Expand Down

0 comments on commit 0dd250d

Please sign in to comment.