Fix GoToDefinition changing the viewport unnecessarily (#18441)
Ömer Sinan Ağacan
created
Closes #10738.
Release Notes:
- Fixed `GoToDefinition` changing the viewport (scrolling up/down) even when the definition is already within the viewport. ([#10738](https://github.com/zed-industries/zed/issues/10738))