microsoft / microsoft/pxt-microbit

intellisense for datalogging should not suggest columns already used in a log call

Open
#4,714 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

data logger help wanted
Dominant language
TypeScript
Stars
804
Forks
721
Avg merge
2d 9h
Merged PRs (30d)
2

Description

Describe the bug

When you're logging columns, it would be good for Intellisense not to suggest columns already used in that log statement.

If you call something like:
datalogger.log(datalogger.createCV("compost", 1), datalogger.createCV("compost", 2), datalogger.createCV("compost", 3))
You will only get a single row with '3' as the entry for 'compost'

To Reproduce

multisuggest log

Expected behavior

I think the already used values should be removed from intellisense.

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

Start by reproducing the datalogger.log call using repeated datalogger.createCV values and inspect the Intellisense suggestions for that statement. Trace the Intellisense and datalogger entry points involved in generating column suggestions. Done means columns already used in the log call are no longer suggested and the single-row logging behavior is addressed.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.