Skip to content

Commit eeea056

Browse files
m2decvharris
authored andcommitted
Enable dot syntax for auto completion in tailwind css
1 parent 6409147 commit eeea056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import ParseEngineGateway from './parse-engine-gateway';
1010
let notifier: Notifier = new Notifier('html-css-class-completion.cache');
1111
let uniqueDefinitions: CssClassDefinition[] = [];
1212

13-
const completionTriggerChars = ['"', '\'', ' '];
13+
const completionTriggerChars = ['"', '\'', ' ', '.'];
1414

1515
let caching: boolean = false;
1616

@@ -135,7 +135,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
135135
// CSS based extensions
136136
['css', 'sass', 'scss'].forEach((extension) => {
137137
// Support for Tailwind CSS
138-
context.subscriptions.push(provideCompletionItemsGenerator(extension, /@apply ([\w- ]*$)/));
138+
context.subscriptions.push(provideCompletionItemsGenerator(extension, /@apply ([\.\w- ]*$)/, '.'));
139139
});
140140

141141
caching = true;

0 commit comments

Comments
 (0)