Skip to content

v0.11.2

Choose a tag to compare

@github-actions github-actions released this 07 Nov 13:20
· 88 commits to main since this release
6c51259

Fixes

  • The server no longer stops on a snippet. Tools other than the scanners lexed files without their language's syntax: a JavaScript regexp holding a quote read as a string to the end of the file, a snippet range ran past its definition and the server panicked. Every reader of tokens now uses the scanner's configuration, and a range that does not fit the file is refused.
  • Names stay within their language. A name used in one language no longer counts as a use of a definition in an unrelated one, so a JavaScript variable no longer reaches Rust tests.
  • A documentation heading is no class. A struct sharing its name with a heading resolves its methods again.
  • Rust aliases and unit structs end at their semicolon instead of taking the next item into their range and snippet.

Tools

  • get_code_snippet names the lines of other definitions of the same name in the file (also_defined_at) and takes max_lines, with the line it would go on at.

The snapshot format and the scanner identity changed; the first analyse after upgrading rebuilds the graph.

Install

  • Homebrew: brew install attackwave/glasir/glasir
  • Scoop: add the bucket Attackwave/scoop-glasir, then run scoop install glasir