File tree Expand file tree Collapse file tree
packages/tailwindcss-language-server/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -738,6 +738,11 @@ export class TW {
738738
739739 this . disposables . push (
740740 this . documentService . onDidChangeContent ( ( change ) => {
741+ // Don't push diagnostics to clients supporting the pull model
742+ if ( this . initializeParams . capabilities . textDocument ?. diagnostic ) {
743+ return
744+ }
745+
741746 this . getProject ( change . document ) ?. provideDiagnostics ( change . document )
742747 } ) ,
743748 )
@@ -850,6 +855,11 @@ export class TW {
850855 }
851856
852857 private refreshDiagnostics ( ) {
858+ // Don't push diagnostics to clients supporting the pull model
859+ if ( this . initializeParams . capabilities . textDocument ?. diagnostic ) {
860+ return
861+ }
862+
853863 for ( let doc of this . documentService . getAllDocuments ( ) ) {
854864 let project = this . getProject ( doc )
855865 if ( project ) {
You can’t perform that action at this time.
0 commit comments