Skip to content

'Use element access' quick fix doesn't respect quote style #41787

Closed

Description

declare let x: { [x: string]: number };

x.yadda/**/;

Specify a quote style of 'single' and apply the quick fix at /**/.

Currently this is changed to

declare let x: { [x: string]: number };

x["yadda"];

but should switch to

declare let x: { [x: string]: number };

x['yadda'];

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Fix AvailableA PR has been opened for this issueGood First IssueWell scoped, documented and has the green lightHelp WantedYou can do this

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions