Skip to content

Support "format selection" [LSP] #812

Closed

Description

@partounian

When I use the vim command =, it throws the error There is no formatter for 'dart'-files installed.

VSCode Version 1.22.2 (1.22.2)
Dart Code Version 2.11.2

Activity

  1. DanTup commented on Apr 18, 2018

    @DanTup
    Member

    I can't find any information on what the vim command = is supposed to do - can you provide more info about this? (I think a VsCodeVim extension, but I can't find any docs suggesting that = is related to formatting).

    If you click Format Document in the context menu, does that work? If so, my guesses are:

    1. Something is buggy with the vim extension
    2. It's trying to format a selection, which isn't supported by Dart (requires Support formatting of source selections dart-lang/dart_style#92)
  2. added
    awaiting infoRequires more information from the customer to progress
    on Apr 18, 2018
  3. partounian commented on Apr 18, 2018

    @partounian
    Author

    = if used in vim for formatting though it is required to choose a selection (the selection can be the entire file with gg=G [go to top of file, format until bottom]). Format document does work, so it is safe to assume this is related to dart-lang/dart_style#92 . Safe to assume we can close this then as it's basically a duplicate.

  4. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in editorRelates to code editing or language features
    and removed
    awaiting infoRequires more information from the customer to progress
    on Apr 18, 2018
  5. added this to the Backlog milestone on Apr 18, 2018
  6. changed the title [-]There is no formatter for 'dart'-files installed. (vim vscodevim plugin)[/-] [+]Support "format selection"[/+] on Apr 18, 2018
  7. DanTup commented on Apr 18, 2018

    @DanTup
    Member

    Seems like we actually don't have an open issue about this as a reminder, so I'm re-opening this and re-purposing it. If/when the above case is done, we will implement this (and in the meantime, this case can serve as a reminder of something we want to do but are blocked on).

  8. reopened this on Apr 18, 2018
  9. modified the milestones: Backlog, v3.17.0 on Nov 12, 2020
  10. changed the title [-]Support "format selection"[/-] [+]Support "format selection" [LSP][/+] on Nov 12, 2020
  11. DanTup commented on Nov 12, 2020

    @DanTup
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions