+
Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_lsp): code action wrong diagnosticRelatedInformation span #2920

Merged
merged 5 commits into from
Jul 26, 2022

Conversation

IWANABETHATGUY
Copy link
Contributor

@IWANABETHATGUY IWANABETHATGUY commented Jul 23, 2022

Summary

  1. Fixing code action wrong diagnosticRelatedInformation span

Test Plan

  1. run locally, or see the preview video.

@IWANABETHATGUY IWANABETHATGUY marked this pull request as draft July 23, 2022 15:23
@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review July 23, 2022 15:38
@IWANABETHATGUY IWANABETHATGUY changed the title Fix/diagnostic related info fix(rome_lsp):Code action wrong diagnosticRelatedInformation span Jul 23, 2022
@IWANABETHATGUY IWANABETHATGUY changed the title fix(rome_lsp):Code action wrong diagnosticRelatedInformation span fix(rome_lsp): code action wrong diagnosticRelatedInformation span Jul 23, 2022
@IWANABETHATGUY
Copy link
Contributor Author

Main

main_act.ion.mp4

Curren

current_action.mp4

t

@ematipico
Copy link
Contributor

ematipico commented Jul 25, 2022

Is there an issue related to this PR? Could you explain where's the issue?

@IWANABETHATGUY
Copy link
Contributor Author

Nope, the related diagnostic span is wrong.
the catch parameter declared at (5,9) instead of (6,3).

If the related diagnostic span is right, the cursor would jump to where the catch parameter is declared.

@ematipico ematipico merged commit ba8d17d into rome:main Jul 26, 2022
@IWANABETHATGUY IWANABETHATGUY deleted the fix/diagnostic_related_info branch July 26, 2022 12:24
IWANABETHATGUY added a commit to IWANABETHATGUY/tools that referenced this pull request Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载