Skip to content

Sticky scroll: sticks for wrong lines in Rust when functions have documentation #158656

@aaarkid

Description

@aaarkid

Does this issue occur when all extensions are disabled?: Yes (it doesn't stick at all)

  • VS Code Version: 1.70.2
  • OS Version: Windows 11 Pro 22H2 22622.575

Steps to Reproduce:

  1. Create a Rust library with cargo new --lib.
  2. Create a function inside of lib.rs and produce documentation for it by having /// documentation lines above it.
  3. Turn on Sticky Scroll inside VSC settings.
  4. Try scrolling the lib.rs file.

Expected outcome:
Function signatures stick at the top line due to Sticky Scroll.

Actual outcome:
First line of documentation sticks at the top line. (Function without documentation, i.e. private fn, stick properly).

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)triage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions