graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
557 stars 71 forks source link

Extension crashed on VSCode 1.66.0 (Reading 'timeoutType') #460

Closed suppayami closed 2 years ago

suppayami commented 2 years ago

Actual Behavior

Open graphql file and extension automatically crashed.

Expected Behavior

Extension should run normally and allow seeing stuffs on hovering fields.

Steps to Reproduce the Problem Or Description

Open a project with Graphql config, open a .graphql file and hover on a field.

Specifications

Logs Of TS Server || GraphQL Language Service

[Info  - 9:14:19 AM] The graphql server has stopped running
GraphQL LSP restarted
(node:21776) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
4/1/2022, 9:14:20 AM [3] (pid: 21776) graphql-language-service-usage-logs: {"type":"usage","messageType":"initialize"}
/home/yami/.vscode-server/extensions/graphql.vscode-graphql-0.3.53/out/server/server.js:96572
            if (socket[kParser].timeoutType !== TIMEOUT_IDLE) {
                                ^

TypeError: Cannot read properties of undefined (reading 'timeoutType')
    at _resume (/home/yami/.vscode-server/extensions/graphql.vscode-graphql-0.3.53/out/server/server.js:96572:33)
    at resume (/home/yami/.vscode-server/extensions/graphql.vscode-graphql-0.3.53/out/server/server.js:96542:7)
    at connect (/home/yami/.vscode-server/extensions/graphql.vscode-graphql-0.3.53/out/server/server.js:96531:7)
[Error - 9:14:20 AM] Connection to server got closed. Server will not be restarted.
[Info  - 9:14:20 AM] The graphql server has stopped running
suppayami commented 2 years ago

Duplicated from graphql/graphiql#2269