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

Unable to open file in go to definition feature #129

Closed miguelcaravantes closed 2 years ago

miguelcaravantes commented 5 years ago

Actual Behavior

when i try to go to definition visual studio tries to open the file related, but despite the path is correct. there are two backslash "\" before c:\ and visual studio is unable to open that file. image

Expected Behavior

when someone click in go to definition or push F12 key, visual studio should open the file related.

Steps to Reproduce the Problem Or Description

select a custom graphql type. click in go to definition visual studio tries to open the file get a exception in windows 10

Specifications

Logs Of TS Server || GraphQL Language Service

damiangreen commented 3 years ago

Ours takes us to an ambient type definition for graphql

declare module '*.graphql' {
  import { DocumentNode } from 'graphql'

  const value: DocumentNode
  export = value
}
acao commented 2 years ago

This should be fixed now