posit-dev / posit-dev/positron

Symbol navigator is polluted with headings from snapshot tests

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

Nobody has claimed this yet.

bug lang: r
Dominant language
TypeScript
Stars
4.3k
Forks
183
Avg merge
1d 11h
Merged PRs (30d)
206

Description

Positron Version:

Steps to reproduce the issue:

e.g. open http://github.com/tidyverse/dbplyr and press Cmd + T

Screenshot 2023-12-21 at 15 04 04

These are all headings from snapshots, which you're unlikely to want to navigate to.

What did you expect to happen?

Having headings indexed in other markdown files (particularly Rmds seems useful) but I think you could block indexing for _snaps/ and put all md headings further down the list.

Were there any error messages in the output or Developer Tools console?

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 issue by opening the linked dbplyr repository and pressing Cmd + T, then inspect how the symbol navigator indexes Markdown headings. Done means headings from _snaps/ are excluded while headings from other Markdown files, particularly Rmds, remain available and are ordered lower in the results.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.