镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Autocomplete does not work with pipes #331

Closed

Description

@Lomand

It seems it works only with arrays and strings autosuggesing Js.Array2 and Js.String2, does not work with locally defined functions.

image

image

Activity

  1. cristianoc commented on Dec 24, 2021

    @cristianoc
    Collaborator

    pipe auto completion is designed to work on types defined in a module, not on locally defined values

    The analogue would be a local module defining a type t, then pipe will autocomplete on values of type t, by suggesting arbitrary functions defined in the module.

    ( a few things like strings and arrays are hard coded, and complete using the standard library)

  2. cristianoc commented on Dec 24, 2021

    @cristianoc
    Collaborator

    In other words, pipe autocomplete is designed to support data types defined in a module, where all functions take that type as first argument.

  3. Mng12345 commented on Dec 30, 2021

    @Mng12345

    @cristianoc it is hard to keep all the functions in mind, It would be happy when coding with pipe operator if the auto complete can work on functions defined outside module

  4. added a commit that references this issue on Jan 18, 2022
  5. zth commented on May 5, 2022

    @zth
    Member

    Closing this for now, as it's working as intended right now (although it can of course be discussed how generalized pipe completion should be).

  6. Mng12345 commented on May 6, 2022

    @Mng12345

    Great work!!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions