Patch Changes
-
#4225
4bb7909Thanks @trevor-scheer! - Fix hover crashing on the first line of a queryGraphQLWorker.doHoverwas passing 0-indexed positions togetRange, which expects a 1-indexedSourceLocation(per the GraphQL spec). On the first line this causedExpected Parser stream to be availableto be logged and hover to returnnull. On other lines it returned the range of the previous line's last token rather than the token under the cursor. UsegetTokenAtPositionto compute the actual token range instead. -
Updated dependencies [
914a547,10f66d5]:- graphql-language-service@5.5.1