You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set editor.formatOnSave to false, then this no longer happens. I'm actually not sure why I had that enabled, but in any case it should not be happening regardless.
Maybe you're running into #233
Also, which extension is responsible for formatting the code? The Svelte extension or the Prettier extension (you can see that in your VS Code config)? Also make sure that you have the latest version of prettier and prettier-plugin-svelte in your package.json.
If this still persists, we need a proper reproduction.
I'm not sure if this is the correct place to post this, but I'm having an issue with:
VSCode
1.86.1
Prettier Extension
v10.1.0
Svelte for VS Code
v108.2.2
If I paste anything in a document, the entire script tag is immediately replaced by a base64 encoding of its contents:
Screen.Recording.2024-02-08.at.18.58.08.mov
My
.prettierrc
is as follows:This only happens in
.svelte
files, and only when"plugins": ["prettier-plugin-svelte"]
is set in.prettierrc
The text was updated successfully, but these errors were encountered: