Skip to content

Editor Sticky Scrolling pins attribute instead of module/type declaration #235

@samritchie

Description

@samritchie

Describe the bug
According to repo assist, the scope boundaries in the grammar need adjusting to exclude attributes on types/modules - currently sticky scroll in vscode will pin the attribute and not the type declaration

To Reproduce
Steps to reproduce the behaviour:

  1. Enable editor.stickyScroll.enabled
  2. Open an F# file with a module or type that has an attribute declared on the previous line
  3. Scroll down
  4. The attribute will be pinned as the sticky header, and not the module declaration

Expected behaviour
The type/module declaration is pinned

Environment (please complete the following information):

  • OS: macOS 26.3
  • Ionide version: 7.31.1
  • VSCode version: 1.109.5
  • dotnet SDK version: 10.0.101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions