Skip to content

Commit 75916e5

Browse files
docs: how to make defaults work with the extension (#293)
1 parent c010c93 commit 75916e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ And we're done! Our components can now be written as:
146146

147147
Ok, we now can write our entire app with Pug, TypeScript and SCSS, but typing `lang="..."` in every file can become an obnoxious process. In [auto-preprocessing mode](/docs/preprocessing.md#auto-preprocessing), `svelte-preprocess` [lets us define the default languages](/docs/preprocessing.md#auto-preprocessing-options) of our components. It defaults to HTML, JavaScript and CSS. Let's change that so we don't need those `lang` attributes.
148148

149-
_**Disclaimer**: The Svelte VS Code extension uses the `lang` or `type` attribute to correctly highlight your code. At the time of writing, the extension doesn't support default languages. Doing this can lead to errors on your IDE._
149+
_**Disclaimer**: The Svelte VS Code extension cannot read the defaults from the rollup config and needs a separate `svelte.config.js` file with the defaults in it. See the [usage guide](/docs/usage.md#with-svelte-vs-code) for an example of setting up a `svelte.config.js` file.
150150

151151
```diff
152152
import svelte from 'rollup-plugin-svelte'

0 commit comments

Comments
 (0)