Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use different error code for code action errors #2634

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

vinistock
Copy link
Member

Motivation

We keep seeing expected code action errors in our telemetry, which isn't useful. In fact, the only error code we want to send to telemetry is internal server error, which indicates a real bug.

Other codes are used to indicate things that aren't necessarily a bug in the implementation.

Implementation

Changed code actions resolve to stop raising and instead return a request failed error code. Also, started filtering the stuff sent to telemetry to only internal errors.

@vinistock vinistock added server This pull request should be included in the server gem's release notes other Changes that aren't bugfixes, enhancements or breaking changes labels Sep 30, 2024
@vinistock vinistock self-assigned this Sep 30, 2024
@vinistock vinistock requested a review from a team as a code owner September 30, 2024 14:31
@vinistock vinistock requested review from andyw8 and st0012 September 30, 2024 14:31
lib/ruby_lsp/base_server.rb Outdated Show resolved Hide resolved
vscode/src/client.ts Outdated Show resolved Hide resolved
@vinistock vinistock force-pushed the vs-use-different-error-code-for-code-actions branch from 8f13d13 to bd71b59 Compare September 30, 2024 15:13
@vinistock vinistock enabled auto-merge (squash) September 30, 2024 15:14
@vinistock vinistock disabled auto-merge September 30, 2024 15:30
@vinistock vinistock force-pushed the vs-use-different-error-code-for-code-actions branch from bd71b59 to 3d43f34 Compare September 30, 2024 15:31
@vinistock vinistock enabled auto-merge (squash) September 30, 2024 15:32
@vinistock vinistock merged commit a348fec into main Sep 30, 2024
35 checks passed
@vinistock vinistock deleted the vs-use-different-error-code-for-code-actions branch September 30, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
other Changes that aren't bugfixes, enhancements or breaking changes server This pull request should be included in the server gem's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants