pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Auto format of strings doesn't work until you reload VS code

Open yin0713 opened this issue 1 year ago • 3 comments

When typing a { in a string, automatically puts an f on the front of the string. sometimes this function does not work. can you help to fix it?

yin0713 avatar Mar 28 '24 03:03 yin0713

Thanks for the issue. This seems to have regressed. I can't get it to work anymore.

rchiodo avatar Mar 28 '24 16:03 rchiodo

Ah must have been recent changes around indentation causing a problem. It works in our 2024.3.102 Prerelease version.

Can you try that version and let me know if you still have a problem?

rchiodo avatar Mar 28 '24 16:03 rchiodo

Oh no it seems this setting requires a reload. Installing a new version of the pylance extension caused the reload for me.

rchiodo avatar Mar 28 '24 19:03 rchiodo