facebook / facebook/relay

symlinks in vscode extension

Open
#4,256 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

The vscode extension does not work with symlinked folders, while it does it properly with the target.
For example, given this config:

```js
module.exports = {
schema: 'schemas/schema.graphql',
src: 'views',
};
```

Any file inside the folder `views` containing `graphql` tag is properly showing intellisense, but it does not when `views` is a symlink to `foo`. The structure looks like:

```text
root folder/
├─ assets/
├─ ...
├─ schemas/
├─ views/ <== works if not symlinked to *foo"
│ ├─ Component1
│ └─ Component2
└─ foo/
├─ Component1
└─ Component2
```

The `relay-compiler` does understand and properly works with the symlinked folder, but the extension it does not.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.