Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samritchie opened this issue Feb 5, 2024 · 0 comments

Comments

@samritchie
Copy link

Describe the bug

When editor sticky scrolling is enabled, and a declaration (specifically seems to be a module or type) has an attribute on the preceding line, sticky scrolling pins the attribute rather than the module/type declaration. Functions and members appear to work properly.

This behaviour looks similar to an old issue for C# sticky scrolling: microsoft/vscode#157375 and was fixed by microsoft/vscode#157466

Steps to reproduce

  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 Attribute scrolls out of view and the module declaration line is pinned instead

Screenshots

recording.mov

Machine info

  • OS: macOS 14.3
  • .NET SDK version: 8.0.101
  • Ionide version: v7.17.0
  • VSCode 1.86.0 Universal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant