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 dartfmt's IsAvailable() method. #225

Merged
merged 1 commit into from
Aug 22, 2023

Commits on Aug 15, 2023

  1. Fix dartfmt's IsAvailable() method.

    d927656 changed the dartfmt_executable flag from a string to a list, but
    didn't change the use inside IsAvailable(), leading to:
    
    Failed to evaluate whether formatter dartfmt is available: Vim(return)
    :E730: Using a List as a String
    
    The change uses the ResolveFlagToArray() helper in both IsAvailable()
    and FormatRange() (which incidentally also allows defining the flag
    using a Function), and updates the documentation for all flags using
    ResolveFlagToArray() to use the same phrasing.
    
    Fixes google#190.
    malcolmr committed Aug 15, 2023
    Configuration menu
    Copy the full SHA
    cd29c3d View commit details
    Browse the repository at this point in the history