From 8da3c96502d090a57a74bb706a3034ab039c0882 Mon Sep 17 00:00:00 2001 From: Alex Rocha Date: Mon, 30 Sep 2024 16:52:42 -0700 Subject: [PATCH] Only log if the scheme is a file --- lib/ruby_lsp/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.