diff --git a/src/extension.ts b/src/extension.ts index e79a732b0b2ff6c84357a2db93f90e85e4e3699b..0e7d70b9c319b92521ed2e4100c03d73653bde39 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -500,6 +500,15 @@ items: this._items, languages: ['vue'], regex: /\bclass=["']([^"']*)$/, let intellisense = new TailwindIntellisense(tw) +import { dirname } from 'path' + if ( + text.indexOf('') === -1 + ) { + return true + } + return false + context.subscriptions.push(intellisense) 'use strict' triggerCharacters: ["'", '"', ' ', separator] .concat([ @@ -781,13 +790,3 @@ }, ' ' ) } - -function isWithinTemplate(text: string) { - let regex = /(<\/?template\b)/g - let match - let d = 0 - while ((match = regex.exec(text)) !== null) { - d += match[0] === '