Lsp: Visual indication if code actions exist

Created on 15 Dec 2018  路  2Comments  路  Source: sublimelsp/LSP

VS code uses a bulb to indicate if code actions exist.

2018-12-15-200218_683x384_scrot

Currently LSP doesn't show any visual indication that code action exist.
But here is what I come up with:

output

What do you think about that?

enhancement

Most helpful comment

Are you proposing that we look up code actions when the cursor has rested - similar to document highlights?

Yes, I am proposing that. :)

More visible gutter icon?

Something like this? (example, just to showcase)
screenshot from 2018-12-24 12-13-04

I wouldn't go with a popup, placing the bulb in the gutter seems like the most unobtrusive way to tell that there are code actions.

As soon as I polish some things, I will do a PR.

All 2 comments

Are you proposing that we look up code actions when the cursor has rested - similar to document highlights? I like that way of introducing action lookups!

Can we have something a more visible gutter icon? Or maybe an unobtrusive popup could behave like the lightbulb?

Are you proposing that we look up code actions when the cursor has rested - similar to document highlights?

Yes, I am proposing that. :)

More visible gutter icon?

Something like this? (example, just to showcase)
screenshot from 2018-12-24 12-13-04

I wouldn't go with a popup, placing the bulb in the gutter seems like the most unobtrusive way to tell that there are code actions.

As soon as I polish some things, I will do a PR.

Was this page helpful?
0 / 5 - 0 ratings