We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
configFile
1 parent 9bba301 commit f078319Copy full SHA for f078319
packages/vscode-tailwindcss/src/extension.ts
@@ -602,7 +602,13 @@ export async function activate(context: ExtensionContext) {
602
603
async function folderNeedsLanguageServer(folder: WorkspaceFolder): Promise<boolean> {
604
let settings = Workspace.getConfiguration('tailwindCSS', folder)
605
- if (settings.get('experimental.configFile') !== null) {
+ let configFile = settings.get('experimental.configFile')
606
+ if (configFile !== null) {
607
+ // Explicitly skip initialization if the tailwindCSS.experimental.configFile setting is set to `{}`
608
+ if (typeof configFile === 'object' && Object.entries(configFile).length === 0) {
609
+ return false
610
+ }
611
+
612
return true
613
}
614
0 commit comments