rescript-lang / rescript-lang/rescript-vscode

exthost warning: Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'.

Open
#535 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ReScript
Stars
354
Forks
63
Avg merge
11h 29m
Merged PRs (30d)
1

Description

In the Output > Log (Extension Host) panel of VSCode:

[2022-07-31 14:38:18.978] [exthost] [warning] chenglou92.rescript-vscode - Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.
[2022-07-31 14:38:20.184] [exthost] [warning] chenglou92.rescript-vscode - Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.
[2022-07-31 14:38:20.211] [exthost] [warning] chenglou92.rescript-vscode - Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.

In latest master (https://github.com/rescript-lang/rescript-vscode/commit/b6efb50d39768938b10dbf88f2e3c7beac9c7444) with autoRunCodeAnalysis, inlayHints and codeLens enabled.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning in the VSCode Output > Log (Extension Host) panel using the latest master commit with autoRunCodeAnalysis, inlayHints, and codeLens enabled. Start by tracing the extension's code-action handling and CodeActionContext.only usage. Done means requested quickfix actions are returned as requested and the refactor.rewrite warning no longer appears.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.