Redocly / redocly-vs-code

Redocly VS Code extension
37 stars 8 forks source link

Strange behaviour in Cursor Context #33

Open tatomyr opened 2 years ago

tatomyr commented 2 years ago

What happened?

With Cursor Context opened, select several nodes in a definition file. The description in Cursor Context starts glimmering.

What should have happened instead?

It should not glimmer.

Minimal reproducible OpenAPI snippet

Any definition file.

Screenshots

https://user-images.githubusercontent.com/11423792/173565048-e28fed4b-acae-45be-a2eb-1d5081635a3c.mov

Additional context

Most likely this happens because we show the context of the cursor position (which also happens to be the end of selection). We may want to use debounce, or otherwise always show the context of the first selected node.