rokucommunity / rokucommunity/brighterscript

param completion for call inside anon func body is incorrect

Open
#1,523 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug LanguageServer
Dominant language
TypeScript
Stars
208
Forks
68
Avg merge
8h 39m
Merged PRs (30d)
39

Description

The completions should be for m.to.insertChild(, but are showing for the outer sgnode.observe(

bsc version: v0.69.10

Image

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

Start by reproducing the parameter-completion behavior described for a call inside an anonymous function, using BrightScript compiler version v0.69.10 and the attached example. Compare the expected completion target, m.to.insertChild(, with the incorrect outer target, sgnode.observe(; done means completions resolve to the inner call.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.