diff --git a/lib/ruby_lsp/server.rb b/lib/ruby_lsp/server.rb index ff3cd16bc..bf3aedaea 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? && text_document[:uri].scheme == "file" log_message = <<~MESSAGE The file #{text_document[:uri].path} is too long. For performance reasons, semantic highlighting and diagnostics will be disabled.