diff --git a/lib/ruby_lsp/server.rb b/lib/ruby_lsp/server.rb index 4ea721fb9..ea2747c28 100644 --- a/lib/ruby_lsp/server.rb +++ b/lib/ruby_lsp/server.rb @@ -320,7 +320,7 @@ def text_document_did_open(message) language_id: language_id, ) - if document.past_expensive_limit? + if document.past_expensive_limit? && URI(text_document[:uri]).scheme == "file" send_message( Notification.new( method: "window/logMessage",