File tree 2 files changed +7
-0
lines changed
tailwindcss-language-server/src
tailwindcss-language-service/src
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1210,6 +1210,8 @@ export async function createProjectService(
1210
1210
}
1211
1211
} ,
1212
1212
async onUpdateSettings ( ) : Promise < void > {
1213
+ service . onUpdateSettings ( )
1214
+
1213
1215
if ( state . enabled ) {
1214
1216
refreshDiagnostics ( )
1215
1217
}
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export interface LanguageDocument {
51
51
export interface LanguageService {
52
52
open ( doc : TextDocument | string ) : Promise < LanguageDocument | null >
53
53
resolveCompletion ( item : CompletionItem ) : Promise < CompletionItem >
54
+ onUpdateSettings ( ) : Promise < void >
54
55
55
56
/** @internal */
56
57
getColor ( className : string ) : Promise < culori . Color | KeywordColor | null >
@@ -86,6 +87,10 @@ export function createLanguageService(opts: ServiceOptions): LanguageService {
86
87
87
88
return doc . resolveCompletion ( item )
88
89
} ,
90
+
91
+ async onUpdateSettings ( ) {
92
+ store . clear ( )
93
+ } ,
89
94
}
90
95
}
91
96
You can’t perform that action at this time.
0 commit comments