Vscode: Quick Fix hover not working

Created on 5 Jul 2019  路  12Comments  路  Source: microsoft/vscode

After updating to VS Code 1.36.0 the option for quick fix when hovering does not apply the related action.
NOACTION

Using the quick fix on the bulb action does.
ACTION

VS Code Info
Version: 1.36.0 (user setup)
Commit: 0f3794b38477eea13fb47fbe15a42798e6129338
Date: 2019-07-03T13:25:46.372Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362

bug candidate editor-code-actions verified

Most helpful comment

This doesn鈥檛 seem to have been fixed in the 1.36.1 update.

All 12 comments

I'm having the same problem after updating VSCode to 1.36. I'm going to use the bulb action meanwhile.

Yes, after updating the latest version of vscode IDE today, eslint plugin has not work. It used to be normal, but I can use Ctrl +. to fix code errors.

@mjbvz same as with the Java plugin. Has something changed here in VS Code ?

I move the issue to VS Code since the quick fix action computation is the same in both pathes.

Doesn't happen for JS/TS in my testing. Will try with eslint and java

Simple example for eslint. Only happens sometimes:

// @ts-check
import * as React from 'react';

export default <div dangerouslySetInnerHTML={{ __html: '' }} />

Repo

  1. Install eslint and create basic config file.
  2. In a file:
// @ts-check
import * as React from 'react';

export default <div dangerouslySetInnerHTML={{ __html: '' }} />
  1. Wait for warning to show up on dangerouslySetInnerHTML.
  2. Place cursor before dangerouslySetInnerHTML and quicky type space, delete, ctrl+. to trigger code actions
  3. Select one of the suppress fixes

Bug
Code action not applied

I'm having the same problem after updating VSCode to 1.36. I'm going to use the bulb action meanwhile.

But it is hard for bulbs to pop up sometimes.

Still not working on DART/Flutter

This doesn鈥檛 seem to have been fixed in the 1.36.1 update.

This doesn鈥檛 seem to have been fixed in the 1.36.1 update.

Already reported here https://github.com/microsoft/vscode/issues/77018

Below is what I am getting as error while using Quick Action:

[2019-07-11 10:38:38.078] [exthost] [warning] redhat.java - Code actions of kind 'quickfix 'requested but returned code action is of kind 'source.generate.delegateMethods'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.

Was this page helpful?
0 / 5 - 0 ratings