plugin-swift icon indicating copy to clipboard operation
plugin-swift copied to clipboard

Prevent `prettier-ignore` comment from disappearing

Open mrcljx opened this issue 8 years ago • 0 comments

When a prettier-ignore comment is encountered, the node that it is attached to is copied. However it is expected that the range of that node includes the prettier-ignore comment.

This is not the case however, so the comment will disappear:

<node>let foo = [
  1
]</node> // prettier-ignore
<node>let foo = [
  1
]</node>

mrcljx avatar Jan 10 '18 23:01 mrcljx