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

Sticky scroll doesn't work in the editor when sections (#### text ####) are included in the file. #6137

Open
JacobBumgarner opened this issue Jan 28, 2025 · 1 comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: r support
Milestone

Comments

@JacobBumgarner
Copy link

System details:

Positron and OS details:

Positron Version: 2025.01.0 (Universal) build 159
Code - OSS Version: 1.95.0
Commit: bc8820b
Date: 2025-01-09T23:29:00.471Z (2 wks ago)
Electron: 32.2.1
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.2.0

Interpreter details:

R 4.4.1

Describe the issue:

When scrolling and editing R files in Positron, I expected the "sticky scroll" behavior to match VSCode and show me the current function I'm working in.

Positron doesn't match this behavior, even with identical settings. This is caused specifically by having the following format of chunks in the editor:

#### Section Title ####
f <- function(...) {
  invisible()
}

Steps to reproduce the issue:

  1. Copy the following code into a Positron R file:
test_fun <- function(...) {








  



  return(invisible())
}





#### Section Title ####
test_fun2 <- function(...) {














  # long function 
  return(invisible())
}

  1. Scroll and observe that test_fun2 doesn't stick to the top of the pane.

Were there any error messages in the UI, Output panel, or Developer Tools console?

NA

@juliasilge
Copy link
Contributor

Thank you for this report! I also observe the inconsistent behavior with the sticky scroll feature.

@juliasilge juliasilge added lang: r area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working support labels Jan 29, 2025
@juliasilge juliasilge added this to the Future milestone Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: kernels Issues related to Jupyter kernels and LSP servers bug Something isn't working lang: r support
Projects
None yet
Development

No branches or pull requests

2 participants