Vscode: Quick fix light bulb

Created on 8 Dec 2016  路  11Comments  路  Source: microsoft/vscode

  • VSCode Version: 1.8.x

Now that we show the quick fix light bulb in the gutter it would make sense to show it as soon as an fixable error on the line exists.

editor-code-actions feature-request

Most helpful comment

Personally, it seems weird to me to have two different light bulb icons. Just my two cents. It feels almost like it's duplicating information presented in the squiggles, but maybe I'm missing how it could tell something the squiggles can't.

All 11 comments

@dbaeumer You mean when the cursor is on that line/word?

Yes, when the cursor is on that line.

@bgashler1 Can you create a second light bulb icon to differentiate the cases in which a code action is for an error/warning or a just for a word. Basically, code 'quick fix' vs 'refactoring'? The code and css is already prepared for this, see the selectors with ...[data-severity="high"]

@jrieken are we sure we need separate icons? In Visual Studio, there is only one light bulb icon for both refactoring and other fixes.

Unsure - I have seen this in IntelliJ and liked it

@jrieken here's what this might look like.

lightbulb-code-action

Assume that the green top lightbulb of fixing a missing semi-colon was a quick fix (no refactoring). Whereas, assume the red suggestion would suggest something like adding the missing variable to the end of the signature (refactoring). (i.e. ignore the code and just pay attention to the visual difference of these two lightbulbs).

Personally, it seems weird to me to have two different light bulb icons. Just my two cents. It feels almost like it's duplicating information presented in the squiggles, but maybe I'm missing how it could tell something the squiggles can't.

Yeah, now that I see it I am not liking it that much.

We won't do another icon. This issue is resolved then

Frankly, I really like to see an upgrade that allows me to Turn Off the yellow bulb. It is a pain. The reason its a pain is not because of its utility or purpose but because it stands in the way of me being able to highlight a line and drag it. That's because its not in the gutter, its in the text line itself.

screen shot 2017-10-23 at 4 32 28 pm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

omidgolparvar picture omidgolparvar  路  3Comments

biij5698 picture biij5698  路  3Comments

trstringer picture trstringer  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

v-pavanp picture v-pavanp  路  3Comments