rescript-lang / rescript-lang/rescript-vscode

functions in current module dont autocomplete if after ->

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

Nobody has claimed this yet.

Dominant language
ReScript
Stars
354
Forks
63
Avg merge
11h 29m
Merged PRs (30d)
1

Description

this autocompletes "mylog"

let mylog = (s: string) => Console.log(s)

mylog("hello")

this just prematurely offers a bunch of String module functions even before I begin typing mylong but never completes mylog as Im typing it

let mylog = (s: string) => Console.log(s)

"hello"->mylog

Seems to be the same for "opened" modules and even ones opened with bsc-flags from rescript.json

Contributor guide

Open the contributing guide

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 completion behavior in VSCode using the two examples from the issue, including an opened module and modules enabled through rescript.json bsc-flags. Start by tracing completion handling after the -> operator. Done means mylog is offered while typing after -> and unrelated String module functions are not prematurely suggested.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.