File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,23 @@ export class ProjectLocator {
101
101
configPath : string ,
102
102
selectors : string [ ] ,
103
103
) : Promise < ProjectConfig | null > {
104
- let config : ConfigEntry = {
105
- type : 'js' ,
106
- path : configPath ,
107
- source : 'js' ,
108
- entries : [ ] ,
109
- content : [ ] ,
110
- packageRoot : '' ,
111
- }
104
+ let config : ConfigEntry = configPath . endsWith ( '.css' )
105
+ ? {
106
+ type : 'css' ,
107
+ path : configPath ,
108
+ source : 'css' ,
109
+ entries : [ ] ,
110
+ content : [ ] ,
111
+ packageRoot : '' ,
112
+ }
113
+ : {
114
+ type : 'js' ,
115
+ path : configPath ,
116
+ source : 'js' ,
117
+ entries : [ ] ,
118
+ content : [ ] ,
119
+ packageRoot : '' ,
120
+ }
112
121
113
122
let tailwind = await this . detectTailwindVersion ( config )
114
123
You can’t perform that action at this time.
0 commit comments