Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Open handler checks if view is not already open #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eyalz800
Copy link

@eyalz800 eyalz800 commented Sep 1, 2023

I sometimes get a weird error that says "failed to rename buffer" and then symbols-outline opens multiple windows and runs into a bad state. I reproduced it a few times when I pressed the keybinding to open before the LSP is ready and then the handler gets called multiple times. After this change and spamming the keybinding I can no longer reproduce this issue symbols-outline.

I don't know if that's sufficient detail to accept this change and whether you will be able to reproduce this edge case but according to the handler implementation it seems like it's always a bad idea to call it when the outline is already open and even without reproduction it makes sense to check it rather than get into this bad state.

@hedyhli
Copy link

hedyhli commented Nov 2, 2023

I can reproduce this and verified the messy state is no longer the case after the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants