Skip to content

Quick fixes unavailable for optional chaining typos. #34895

@DanielRosenwasser

Description

@DanielRosenwasser

Repro

function f(x: string | null) {
    x!.[|toLowrCase|]();
    x?.[|toLowrCase|]();
}

Instructions

  1. Go to the beginning of each range and request quick fixes.

Current Behavior

A quick fix is only available for the first range.

Expected Behavior

  • A quick fix is available for each range.
  • Applying the first quick fix results in the same corrected typo on each range.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Quick FixesEditor-provided fixes, often called code actions.Fix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions