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 Sep 30, 2024
1 parent b702bec commit 103e7a6
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? && URI(text_document[:uri]).scheme == "file"
send_message(
Notification.new(
method: "window/logMessage",
Expand Down

0 comments on commit 103e7a6

Please sign in to comment.