Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View type on hover #9

Open
alecmev opened this issue Jun 15, 2018 · 2 comments
Open

View type on hover #9

alecmev opened this issue Jun 15, 2018 · 2 comments

Comments

@alecmev
Copy link

alecmev commented Jun 15, 2018

Like TypeScript-Sublime-Plugin.

@Pegase745
Copy link
Owner

I was thinking about this improvement for some time, yes

@max-mykhailenko
Copy link
Contributor

@jeremejevs
I tried to write this, it's easy, but a lot of visual noise appears. I tried to show type only when modifier key pressed, but reading modifier key is not simple task.

As temporary solution try this:
cmd + Right click — show type
cmd + Left click — goto definition

[
    {
        "button": "button1",
        "count": 1,
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "flowtype_goto_definition",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    },
    {
        "button": "button2",
        "count": 1,
        "modifiers": ["super"],
        "press_command": "drag_select",
        "command": "flowtype_view_type",
        "context": [
            { "key": "selector", "operator": "equal", "operand": "source.js" }
        ]
    }
]

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

No branches or pull requests

3 participants