add tailwind-config.js to config file glob

master
Brad Cornes 2018-05-28 17:57:49 +01:00
parent 7b6eb1c78c
commit efbadc7a1c
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
"vscode" "vscode"
], ],
"activationEvents": [ "activationEvents": [
"workspaceContains:**/{tailwind,tailwind.config,.tailwindrc}.js" "workspaceContains:**/{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js"
], ],
"main": "./out/extension", "main": "./out/extension",
"contributes": {}, "contributes": {},

View File

@ -7,7 +7,7 @@ const tailwindClassNames = require('tailwind-class-names')
const dlv = require('dlv') const dlv = require('dlv')
const Color = require('color') const Color = require('color')
const CONFIG_GLOB = '{tailwind,tailwind.config,.tailwindrc}.js' const CONFIG_GLOB = '{tailwind,tailwind.config,tailwind-config,.tailwindrc}.js'
export async function activate(context: vscode.ExtensionContext) { export async function activate(context: vscode.ExtensionContext) {
let tw let tw