Skip to content

Is there better way to handle double click selection? #4

Description

@tyru

This is question issue.

I want to fix selection range when double click.
I tried to fix this using registerHoverProvider() + onDidChangeTextEditorSelection().
https://github.com/sgryjp/japanese-word-handler/compare/master...tyru:handle-double-click?expand=1

But that has the problem:
registerHoverProvider() handler is not called so frequently, it doesn't update mouse position when moving mouse quickly.

And question is:
I wonder if event has a mouse position, or any other better workaround for this 🤔
Do you know that?

Screenshot

Screencast 2019-08-07 13 46 02

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions