-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Checking that the effectiveLineNumber is valid before accessing the line content #200051
Conversation
The problem is on line 205, where the effectiveLineNumber is increased without checking whether this is possible. |
Integration test errors appear to not be related at all to the change, this is quite curious, this needs some investigation |
extensions/typescript-language-features/src/languageFeatures/quickFix.ts
Outdated
Show resolved
Hide resolved
Yesterday during our discussion you mentioned that we could reuse the calculation in the variable
So the effective column number is:
I am not sure how the |
ok. sure. Buyt still, the check to go on column 2 should only happen if we increased or decreased the effective line number. |
ok. sure. But still, the check and column update should only happen when there was no space on the original line. |
Ah yes now I understand, will do 👍🏻 |
I added the code into the if statement |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @justschen Please also take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes lgtm!
Fixes #199938