File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed
packages/tailwindcss-language-server/src Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -857,17 +857,22 @@ async function createProjectService(
857
857
throw new SilentError ( `Failed to load config file: ${ state . configPath } ` )
858
858
}
859
859
860
- state . config = resolveConfig . module ( originalConfig )
861
- state . separator = state . config . separator
862
-
863
- if ( state . jit ) {
864
- state . jitContext = state . modules . jit . createContext . module ( state )
865
- state . jitContext . tailwindConfig . separator = state . config . separator
866
- if ( state . jitContext . getClassList ) {
867
- state . classList = state . jitContext . getClassList ( ) . map ( ( className ) => {
868
- return [ className , { color : getColor ( state , className ) } ]
869
- } )
860
+ try {
861
+ state . config = resolveConfig . module ( originalConfig )
862
+ state . separator = state . config . separator
863
+
864
+ if ( state . jit ) {
865
+ state . jitContext = state . modules . jit . createContext . module ( state )
866
+ state . jitContext . tailwindConfig . separator = state . config . separator
867
+ if ( state . jitContext . getClassList ) {
868
+ state . classList = state . jitContext . getClassList ( ) . map ( ( className ) => {
869
+ return [ className , { color : getColor ( state , className ) } ]
870
+ } )
871
+ }
870
872
}
873
+ } catch ( error ) {
874
+ hook . unhook ( )
875
+ throw error
871
876
}
872
877
873
878
let postcssResult : Result
You can’t perform that action at this time.
0 commit comments