超级充电标签

  • Gleam v1.4.0 Features:

    • Shorthand Syntax for Labels: Allows omitting variable names when they match labels in function calls, record fields, and pattern matching.
    • Label Shorthand Code Action: An editor code action to convert to shorthand syntax.
    • Adding Labels Action: Automatically adds labels that a call accepts.
    • Label Access Completion: Supports completion of labelled record fields in the language server.
    • Signature Help: The language server shows function documentation and highlights the next argument to supply.
    • Unmistakable Warnings: Warnings are emitted each time the project is built, ensuring they are not missed.
    • Targeted Documentation: gleam docs build now takes a --target flag.
    • Even More Fault Tolerance: The compiler retains more information in the presence of errors.
    • Help for a Common Type Definition Mistake: Displays custom error messages for incorrect type definitions.
    • Constant Concatenation: The <> operator can be used in constant expressions.
    • More JavaScript Bit Array Support: Adds support for various bit array options in JavaScript.
    • Document Symbols: The language server supports listing document symbols in Gleam files.
    • Case Correction: The language server suggests code actions to adjust case.
    • Assert to Case: Converts let assert to case and panic expressions.
  • Thanks and Support: Acknowledges contributors and calls for support as Gleam has no corporate backing.
阅读 16
0 条评论