You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2020. It is now read-only.
This is a bug that shook out the refactoring to make watchman optional #218. If watchman is installed on the user's system, we need to subscribe the loaded project or projects from .graphqlconfig to file change events. However, it looks like in the case where the .graphqlconfig didn't define any projects, that is, it just contains top-level data about the project, this line blows up because config.getProjects returns undefined.
mgadda
changed the title
File change notifications delivered via watchman does not work if there are projects specified in .graphqlconfig
File change notifications delivered via watchman do not work if there are projects specified in .graphqlconfig
Apr 11, 2018
mgadda
pushed a commit
to mgadda/graphql-language-service
that referenced
this issue
Apr 11, 2018
This is a bug that shook out the refactoring to make watchman optional #218. If watchman is installed on the user's system, we need to subscribe the loaded project or projects from
.graphqlconfig
to file change events. However, it looks like in the case where the.graphqlconfig
didn't define any projects, that is, it just contains top-level data about the project, this line blows up becauseconfig.getProjects
returnsundefined
.The simple fix should be:
The text was updated successfully, but these errors were encountered: