Closed anaskiee closed 8 years ago
I can open a pull request if needed
Yes please! Contributions always welcome.
Actually, I found that there is already a pull request associated to this bug https://github.com/atom/symbols-view/pull/136
The issue associated is the following : https://github.com/atom/symbols-view/issues/132
Ok, then I'm closing this issue in favor of #132.
When triggerring function go-to-declaration, the editor window is not center around the symbol as expected.
I fixed it by doing this in lib/symbols-view.coffee :
You can analyse it by breaking into text-editor-presenter.js functions :
It seems that the functions
setCursorBufferPosition
andmoveToFirstCharacterOfLine
override the option{center: true}
ofscrollToBufferPosition
. As a consequence, the functioncommitPendingLogicalScrollTopPosition
doesn't have the option anymore. It is due to the fact that the calls are not synchronous, they're stored as event and are somehow concurrent...I can open a pull request if needed