diff --git a/packages/pug-language-service/src/baseParse.ts b/packages/pug-language-service/src/baseParse.ts index 4c5abb8db..0a0337911 100644 --- a/packages/pug-language-service/src/baseParse.ts +++ b/packages/pug-language-service/src/baseParse.ts @@ -142,7 +142,7 @@ export function baseParse(pugCode: string) { const noTitleAttrs = node.attrs.filter(attr => !attr.mustEscape && attr.name !== 'class'); const noTitleClassAttrs = node.attrs.filter(attr => !attr.mustEscape && attr.name === 'class'); - const attrsBlock = attrsBlocks.get(getDocOffset(node.line, node.column)); // support attr auto-complete in empty space + const attrsBlock = attrsBlocks.get(getDocOffset(node.line, node.column)); // support attr auto-complete in spaces addClassesOrStyles(noTitleClassAttrs, 'class');