File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
tailwindcss-language-server/src
tailwindcss-language-service/src Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1207,6 +1207,8 @@ export async function createProjectService(
12071207 }
12081208 } ,
12091209 async onUpdateSettings ( ) : Promise < void > {
1210+ service . onUpdateSettings ( )
1211+
12101212 if ( state . enabled ) {
12111213 refreshDiagnostics ( )
12121214 }
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export interface LanguageDocument {
5151export interface LanguageService {
5252 open ( doc : TextDocument | string ) : Promise < LanguageDocument | null >
5353 resolveCompletion ( item : CompletionItem ) : Promise < CompletionItem >
54+ onUpdateSettings ( ) : Promise < void >
5455
5556 /** @internal */
5657 getColor ( className : string ) : Promise < culori . Color | KeywordColor | null >
@@ -86,6 +87,10 @@ export function createLanguageService(opts: ServiceOptions): LanguageService {
8687
8788 return doc . resolveCompletion ( item )
8889 } ,
90+
91+ async onUpdateSettings ( ) {
92+ store . clear ( )
93+ } ,
8994 }
9095}
9196
You can’t perform that action at this time.
0 commit comments