Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async function createParserErrorDiagnostic(error: any, document: Document) {
'\n\nIf you expect this syntax to work, here are some suggestions: ';
if (isInScript) {
diagnostic.message +=
'\nIf you use typescript with `svelte-preprocess`, did you add `lang="typescript"` to your `script` tag? ';
'\nIf you use typescript with `svelte-preprocess`, did you add `lang="ts"` to your `script` tag? ';
} else {
diagnostic.message +=
'\nIf you use less/SCSS with `svelte-preprocess`, did you add `lang="scss"`/`lang="less"` to you `style` tag? ' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ describe('SveltePlugin#getDiagnostics', () => {
message:
'expected x to not be here' +
'\n\nIf you expect this syntax to work, here are some suggestions: ' +
'\nIf you use typescript with `svelte-preprocess`, did you add `lang="typescript"` to your `script` tag? ' +
'\nIf you use typescript with `svelte-preprocess`, did you add `lang="ts"` to your `script` tag? ' +
'\nDid you setup a `svelte.config.js`? ' +
'\nSee https://github.com/sveltejs/language-tools/tree/master/docs#using-with-preprocessors for more info.',
range: {
Expand Down