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

Fix truncated echo #3889

Merged
merged 2 commits into from
Sep 6, 2021
Merged

Conversation

amadeus
Copy link
Contributor

@amadeus amadeus commented Sep 3, 2021

In typescript, when putting the cursor on a > character of an arrow function, the body.displayString comes back as an empty string, and means the split operation has 0 items, causing a failure when attempting to call TruncatedEcho with the 0 index.

Even if there's a better fix, I'd assume this is a good safety since we are ingesting external data?

Should fix #3512

In typescript, when putting the cursor on a `>` character of an arrow
function, the displayString body comes back as an empty string, and
means the split operation has 0 items, causing a failure when attempting
to call TruncatedEcho.

Even if there's a better fix, I'd assume this is a good safety since we
are injesting external data.
autoload/ale/hover.vim Outdated Show resolved Hide resolved
Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

@hsanson hsanson merged commit 35d0bd1 into dense-analysis:master Sep 6, 2021
@amadeus amadeus deleted the fix-truncated-echo branch September 6, 2021 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ALE's echo symbol on hover throws error on typescript lambda arrows in a type declaration
2 participants