File tree 1 file changed +3
-3
lines changed
packages/tailwindcss-language-server/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -910,7 +910,7 @@ export class TW {
910
910
// If the client does not suppory dynamic registration of completions then
911
911
// we cannot update the set of trigger characters
912
912
let client = this . initializeParams . capabilities
913
- if ( client . textDocument ?. completion ?. dynamicRegistration ) return
913
+ if ( ! client . textDocument ?. completion ?. dynamicRegistration ) return
914
914
915
915
// The new set of trigger characters is all the static ones plus
916
916
// any characters from any separator in v3 config
@@ -927,10 +927,10 @@ export class TW {
927
927
}
928
928
929
929
// If the trigger characters haven't changed then we don't need to do anything
930
- if ( equal ( Array . from ( chars ) , Array . from ( this . lastTriggerCharacters ) ) ) return
930
+ if ( equal ( Array . from ( chars ) , Array . from ( this . lastTriggerCharacters ?? [ ] ) ) ) return
931
931
this . lastTriggerCharacters = chars
932
932
933
- this . completionRegistration . dispose ( )
933
+ this . completionRegistration ? .dispose ( )
934
934
this . completionRegistration = await this . connection . client . register ( CompletionRequest . type , {
935
935
documentSelector : null ,
936
936
resolveProvider : true ,
You can’t perform that action at this time.
0 commit comments