diff --git a/packages/language-server/src/plugins/svelte/features/getCompletions.ts b/packages/language-server/src/plugins/svelte/features/getCompletions.ts index a64e50989..10f0819b5 100644 --- a/packages/language-server/src/plugins/svelte/features/getCompletions.ts +++ b/packages/language-server/src/plugins/svelte/features/getCompletions.ts @@ -1,3 +1,4 @@ +import { EOL } from 'os'; import { SvelteDocument } from '../SvelteDocument'; import { Position, @@ -8,9 +9,21 @@ import { } from 'vscode-languageserver'; import { SvelteTag, documentation, getLatestOpeningTag } from './SvelteTags'; import { isInTag } from '../../../lib/documents'; -/** - * Get completions for special svelte tags within moustache tags. - */ + +const HTML_COMMENT_START = '