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
The README for the VS Code extension states that it supports formatting CSS (via Prettier). However, VS Code reports that the extension cannot format CSS files.
html,
body {
font-size: 12px;
background-color: slategray;
}
Save the file; note that it does not get formatted
Open the command palette and select "Format Document"; see the error "Extension 'Svelte for VS Code' is configured as formatter but it cannot format 'CSS'-files"
Expected behaviour
From the README, I expected svelte.svelte-vscode to be able to format these file types (using Prettier under the hood):
*.svelte
*.css
*.js
*.json (since it is essentially a subset of JavaScript)
*.html
System Info
OS: macOS 12.3.1
IDE: VS Code version: 1.66.2 (Universal)
Svelte for VS Code version: v105.16.0
Which package is the issue about?
Svelte for VS Code
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
The README for the VS Code extension states that it supports formatting CSS (via Prettier). However, VS Code reports that the extension cannot format CSS files.
Reproduction
Expected behaviour
From the README, I expected
svelte.svelte-vscode
to be able to format these file types (using Prettier under the hood):*.svelte
*.css
*.js
*.json
(since it is essentially a subset of JavaScript)*.html
System Info
Which package is the issue about?
Svelte for VS Code
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: