TypeProvider runs out of control with certain schema/operation
Describe the bug
When opening a specific .fsx file that makes use of a type provider, the .NET Core Host used by Ionide loses its mind and hogs all the CPU and memory. Pretty spectacularly:

I did also try this with Visual Studio 2019, and it exhibited similar behavior, although after trying it with VS it seems to be specifically caused by this operation:
let updateOperation =
AdminAPI.Operation<
"""
mutation UpdateProduct($input: ProductInput!) {
productUpdate(input: $input) {
product {
id
}
userErrors {
field
message
}
}
}
"""
>()
See attached files below for the schema and full script.
To Reproduce Steps to reproduce the behaviour:
- Clone the latest FSharp.Data.GraphQL repository
- In the
samples/client-providerfolder, add the following files:shopify_tests.fsx,shopify.jsonprovided here: client-provider.zip - Open the root
FSharp.Data.GraphQLworkspace in VSCode - Open
shopify_tests.fsx - Observe the .NET Core Host go bonkers
Expected behaviour
I would expect this to not happen :-)
Screenshots See above
Environment (please complete the following information):
- OS: Windows 10
- Ionide version: 4.2.0
- VSCode version: 1.39.2
- dotnet SDK version: 3.0.100
- mono / .Net Framework version: 4.8.03752
Additional context
Hi @aggieben, I’m having a similar issue. Did you find a workaround?
Try again with the latest version from the GitHub feed. Feel free to reopen