Skip to content

Fix GoToDefinition changing the viewport unnecessarily#18441

Merged
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
osa1:goto_scroll
Sep 27, 2024
Merged

Fix GoToDefinition changing the viewport unnecessarily#18441
SomeoneToIgnore merged 1 commit intozed-industries:mainfrom
osa1:goto_scroll

Conversation

@osa1
Copy link
Copy Markdown
Contributor

@osa1 osa1 commented Sep 27, 2024

Closes #10738.

Release Notes:

  • Fixed GoToDefinition changing the viewport (scrolling up/down) even when the definition is already within the viewport. (#10738)

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Sep 27, 2024
@osa1 osa1 marked this pull request as ready for review September 27, 2024 14:51
@osa1
Copy link
Copy Markdown
Contributor Author

osa1 commented Sep 27, 2024

This doesn't break any tests but I suspect the code may be intentional and this will break something.. If that's the case please let me know and I'd like to fix this properly.

Copy link
Copy Markdown
Contributor

@SomeoneToIgnore SomeoneToIgnore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous state did not intend to jitter and jump, sorry.
And thank you for finding a fix.

@SomeoneToIgnore SomeoneToIgnore self-assigned this Sep 27, 2024
@SomeoneToIgnore SomeoneToIgnore merged commit dc5ffe6 into zed-industries:main Sep 27, 2024
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Messages
📖

This PR includes links to the following GitHub Issues: #10738
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 5ca6d1d

schpet added a commit to schpet/zed that referenced this pull request Oct 3, 2024
* upstream/main: (33 commits)
  Fine-tune hunk control spacing (zed-industries#18463)
  Add tooltip for code actions icon button (zed-industries#18461)
  More git hunk highlighting fixes (zed-industries#18459)
  Move git hunk controls to the left side (zed-industries#18460)
  Capitalize tooltip labels on buffer search (zed-industries#18458)
  Install cargo-edito without extra features (zed-industries#18457)
  Fix bugs in diff hunk highlighting (zed-industries#18454)
  Remove Qwen2 model (zed-industries#18444)
  vim: Command selection fixes (zed-industries#18424)
  Add a `get-release-notes-since` script (zed-industries#18445)
  Fix GoToDefinition changing the viewport unnecessarily (zed-industries#18441)
  docs: Ollama api_url improvements (zed-industries#18440)
  Fix missing tooltips for selected buttons (zed-industries#18435)
  Add missing shortcuts in tooltips (zed-industries#18282)
  assistant: Fix copy/cut not working when selection is empty (zed-industries#18403)
  Fix the numeration in line wrap docs (zed-industries#18428)
  ssh remoting: Show error if opening connection timed out (zed-industries#18401)
  project: Fix worktree store event missing in remote projects (zed-industries#18376)
  Fix read timeout for ollama (zed-industries#18417)
  vim: Support za (zed-industries#18421)
  ...
noaccOS pushed a commit to noaccOS/zed that referenced this pull request Oct 19, 2024
…s#18441)

Closes zed-industries#10738.

Release Notes:

- Fixed `GoToDefinition` changing the viewport (scrolling up/down) even when the definition is already within the viewport. ([zed-industries#10738](zed-industries#10738))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

go to definition: don't always jump screen

3 participants