Skip to content

Commit

Permalink
Only log if the scheme is a file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrocha committed Oct 2, 2024
1 parent cd07fc7 commit 8da3c96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8da3c96

Please sign in to comment.