Skip to content

Don't offer Convert to template string refactoring for simple strings #36784

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 3.8.1-rc

Search Terms:

  • refactor
  • refactoring
  • code actions

Repo
For code such as

import ImageEditor from 'tui-image-editor';

Place cursor on the string

Bug:
A convert to template string refactoring is offered. This is not helpful.

I suggest that we only show convert to template string if you are on a string concatenation expression.

Metadata

Metadata

Labels

BugA bug in TypeScriptDomain: Refactoringse.g. extract to constant or function, rename symbolFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions