jaredly / jaredly/reason-language-server
autosuggestions from other folders are not working
Nobody has claimed this yet.
- Dominant language
- OCaml
- Stars
- 649
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Currently, I'm writing jest test cases in a reason react project. My test file is in `__tests__` folder. If I open `module A` in `module B` of `src` folder which also contains `module A` then autosuggestions are working but if I am opening `module A` in `module B_Test` which is in `__tests__` then autosuggestions are not working.
My bsconfig.json
```
"sources": [
{
"dir": "src",
"subdirs": true
},
{
"dir": "__tests__",
"subdirs": true,
"type": "dev"
}
],
```
### Environment
OS: macOS 10.14
bs-platform: 4.0.7,
VS Code Version: 1.30.1
TIA
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in VS Code using the stated bsconfig.json, with matching modules under src and __tests__. Compare autocomplete for imports from module B versus module B_Test, then trace the language-server handling of the two source roots. Done means autosuggestions work from the test folder as well as from src.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100