Depends on Shopify/vscode-ruby-lsp#571
When errors occur in the server, we send them to telemetry if a client is defined by a private extension using the ruby-lsp.getPrivateTelemetryApi command.
However, when we're working on the ruby-lsp or ruby-lsp-rails themselves, we should shorten this feedback loop and just display the errors directly in the window.
Let's start checking if we're working on these two projects and then, instead of sending telemetry on errors, we just use vscode.window.showErrorMessage to pop up the error to immediately bring it to our attention.
Depends on Shopify/vscode-ruby-lsp#571
When errors occur in the server, we send them to telemetry if a client is defined by a private extension using the
ruby-lsp.getPrivateTelemetryApicommand.However, when we're working on the
ruby-lsporruby-lsp-railsthemselves, we should shorten this feedback loop and just display the errors directly in the window.Let's start checking if we're working on these two projects and then, instead of sending telemetry on errors, we just use
vscode.window.showErrorMessageto pop up the error to immediately bring it to our attention.