
osx: 10.12.6
vscode: 1.17.2 (1.17.2) b813d12980308015bcd2b3a2f6efa5c810c33ba5
After I disable this extension, no longer have this issue
What are you doing here exactly? Copy paste test
Can you share your settings ?
I can't reproduce that (even with formatOnPaste)
I found out.
I was in a typescript file ...
Format selection is not working here by selecting the string.
Directive vs Literal??
You can reproduce by this step:
"editor.formatOnPaste": true.js file, write some code like console.log('test');test, then you will get a extra semicolon.@CiGit
Could it be doing a range format on that string as if it were a directive ("use strict";)?
It's fixed in prettier 1.8, 1.7 accepted a string as Source Element (JS was mixed with JSON) prettier/prettier#3069
Strangly it's working with TS and Flow
Edit:
This should be fixed in prettier 1.8 (version we are now bundling)
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Strangly it's working with TS and Flow
Edit: