Skip to content

v0.11.2

Compare
Choose a tag to compare
@Myriad-Dreamin Myriad-Dreamin released this 30 Mar 15:04
· 802 commits to main since this release
b635f06

Editor

  • (Fix) Passed correct arguments to editor tools in #111
    This is useful for working with multiple-file projects.
  • (Fix) exposed pin/unpin commands for vscode in #121

Compiler

  • (Fix) Converting out of bounds offsets again in #115

  • Supported entry configuration in #122
    This is useful for working with multiple-file projects, but we strongly suggest to use pin commands or enable typst-preview's auto pin feature.

    Example use for VSCode:

    {
      "tinymist.typstExtraArgs": [
        // specify sys.inputs
        "--input=theme=dark", "--input=context={\"preview\": true}", 
        // entry path relative to root, or an absolute path if you are unsure where the root is.
        "main.typ"
      ]
    }

    After changing configuration, you should reload editor to ensure it to work.

  • Supported untitled url scheme for unsaved text buffer in #120 and #130

    1. Press Ctrl + N to create an untitled text document.
    2. Change language of buffer to typst

    image

    1. You can write and preview temporary content without saving to disk:

    image

Commands/Tools

  • Allowed tracing typst programs in subprocess in #112
    • This is part of backend for tracing tool, and we may finish a tracing tool in next week.

Formatting

  • Supported formatters in #113
    • Use "formatterMode": "typstyle" for typstyle 0.11.7
    • Use "formatterMode": "typstfmt" for typstfmt 0.2.9
  • feat: minimal diff algorithm for source formatting in #123
2024-03-30.22-26-41.mp4

Completion

  • Fixed wrong completion kind in #124 and #127
  • Not completing on definition itself anymore in #135
  • Supported import path completion in #134
2024-03-30.22-27-50.mp4

Syntax/Semantic Highlighting

  • (Fix) Corrected identifier/keyword boundaries in #128
  • Improved punctuation and keyword token kinds in #133

image

Hover (Tooltip)

  • fix: parse docstring dedents correctly in #132

Full Changelog: v0.11.1...v0.11.2