jaredly / jaredly/reason-language-server

autosuggestions from other folders are not working

Open
#216 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs repro
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.