Auto-Import icon indicating copy to clipboard operation
Auto-Import copied to clipboard

Quotes are always double quotes

Open chadrien opened this issue 7 years ago • 5 comments

Hey,

I have an issue where quotes used in imports are always " regardless of the value of autoimport.doubleQuotes.

vscode version: 1.11.2 autoimport version: 1.2.2

Awesome extension otherwise!

chadrien avatar Apr 27 '17 08:04 chadrien

Same here with me.

raybooysen avatar May 04 '17 09:05 raybooysen

Same here, and tslinit nagging about it all the time

RezaRahmati avatar May 05 '17 14:05 RezaRahmati

Nice works. Same here, and tslinit nagging about it all the time.

kinglionsoft avatar May 15 '17 12:05 kinglionsoft

With doubleQuotes false the last one is doublequoted :( image

syabro avatar Jul 17 '17 15:07 syabro

This extension is not the one that is inserting the double quote option into the quick fix view. This is done by TypeScript. You can track the issue here: https://github.com/Microsoft/TypeScript/issues/13270

~~This comment has a hot-fix which might work for you: https://github.com/Microsoft/TypeScript/issues/13270#issuecomment-366454554~~

~~Or this extension could be used: https://marketplace.visualstudio.com/items?itemName=DSKWRK.vscode-generate-getter-setter~~

~~A relevent Stackoverflow post: https://stackoverflow.com/questions/42952453/visual-studio-code-adjust-import-quotation-setting~~

EDIT:

The May 2018 VS Code release fixes this issue. You can now configure this behavior using the typescript.preferences.quoteStyle setting.

https://code.visualstudio.com/updates/v1_24#_preferences-for-auto-imports-and-generated-code

ReallyNotARussianSpy avatar Jun 06 '18 18:06 ReallyNotARussianSpy