add support back in for config files named tailwind.js

master
Brad Cornes 2021-05-06 18:20:25 +01:00
parent 2f2d66124a
commit 4994b0aed1
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ const colorNames = Object.keys(namedColors)
const CLIENT_ID = 'tailwindcss-intellisense' const CLIENT_ID = 'tailwindcss-intellisense'
const CLIENT_NAME = 'Tailwind CSS IntelliSense' const CLIENT_NAME = 'Tailwind CSS IntelliSense'
const CONFIG_FILE_GLOB = 'tailwind.config.{js,cjs}' const CONFIG_FILE_GLOB = '{tailwind,tailwind.config}.{js,cjs}'
let clients: Map<string, LanguageClient> = new Map() let clients: Map<string, LanguageClient> = new Map()
let languages: Map<string, string[]> = new Map() let languages: Map<string, string[]> = new Map()

View File

@ -71,7 +71,7 @@ import { debounce } from 'debounce'
import { getModuleDependencies } from './util/getModuleDependencies' import { getModuleDependencies } from './util/getModuleDependencies'
// import postcssLoadConfig from 'postcss-load-config' // import postcssLoadConfig from 'postcss-load-config'
const CONFIG_FILE_GLOB = 'tailwind.config.{js,cjs}' const CONFIG_FILE_GLOB = '{tailwind,tailwind.config}.{js,cjs}'
const TRIGGER_CHARACTERS = [ const TRIGGER_CHARACTERS = [
// class attributes // class attributes
'"', '"',