We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a3703 commit 27c6af7Copy full SHA for 27c6af7
lib/ruby_lsp/server.rb
@@ -604,6 +604,11 @@ def text_document_formatting(message)
604
# don't want to format it
605
path = uri.to_standardized_path
606
unless path.nil? || path.start_with?(@global_state.workspace_path)
607
+ send_log_message(<<~MESSAGE)
608
+ Ignoring formatting request for file outside of the workspace.
609
+ Workspace path was set by editor as #{@global_state.workspace_path}.
610
+ File path requested for formatting was #{path}
611
+ MESSAGE
612
send_empty_response(message[:id])
613
return
614
end
0 commit comments