+5
.changeset/puny-ghosts-clap.md
+5
.changeset/puny-ghosts-clap.md
+353
packages/graphqlsp/src/ast/declaration.ts
+353
packages/graphqlsp/src/ast/declaration.ts
···+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/utilities.ts#L652-L654+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/utilities.ts#L602-L605+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/utilities.ts#L607-L610+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/utilities.ts#L716-L719+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/utilities.ts#L2441-L2447+* This returns the declaration node first found for an identifier by resolving an identifier's+* This mirrors the implementation of `getDefinitionAtPosition` in TS' language service. However,+* it removes all cases that aren't applicable to identifiers and removes the intermediary positional+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L523-L540+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L248-L257+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L259-L280+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L298-L316+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L603-L610+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L612-L616+// should handle some of these cases, and we don't have to care about this subtlety as much for identifiers+// See: https://github.com/microsoft/TypeScript/blob/a5eec24/src/services/goToDefinition.ts#L582-L590
+30
-41
packages/graphqlsp/src/ast/index.ts
+30
-41
packages/graphqlsp/src/ast/index.ts
·········
+27
-35
packages/graphqlsp/src/ast/resolve.ts
+27
-35
packages/graphqlsp/src/ast/resolve.ts
···············
+26
-27
packages/graphqlsp/src/checkImports.ts
+26
-27
packages/graphqlsp/src/checkImports.ts
············
-1
packages/graphqlsp/src/diagnostics.ts
-1
packages/graphqlsp/src/diagnostics.ts
+8
-9
packages/graphqlsp/src/fieldUsage.ts
+8
-9
packages/graphqlsp/src/fieldUsage.ts
······
+32
-55
packages/graphqlsp/src/persisted.ts
+32
-55
packages/graphqlsp/src/persisted.ts
·········
-1
packages/graphqlsp/src/quickInfo.ts
-1
packages/graphqlsp/src/quickInfo.ts
···