Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Latest commit

 

History

History
260 lines (154 loc) · 9.61 KB

CHANGELOG.md

File metadata and controls

260 lines (154 loc) · 9.61 KB

Changelog

All notable changes to lsif-go are documented in this file.

v1.9.2

Fixed

  • Fixed issues with indexing golang/go repo

v1.9.1

Changed

  • The --no-animation flag is now enabled by default. Use the flag --animation to get the old default behavior.

v1.9.0

Changed

  • Update to Go 1.18.2. This should improve indexing of code that uses generics. (#248)

Removed

  • API Documentation. The experimental -enable-api-docs flag has been removed and this functionality is no longer supported.

v1.8.0

Changed

  • Pre-built binary and docker image now support apple silicon. (#245)

v1.7.7

Changed

  • Dropped CGO_ENABLED=0 so users can decide whether or not to enable cgo. (#233)

v1.7.6

Changed

  • The accompanying Docker image uses Go 1.17.7 and src-cli 3.37.0. (#235)

Fixed

  • Fixes a couple of panics (#230, #232).

v1.7.5

Features

  • Added textDocument/implementation support.
    • Also added Sourcegraph specific cross repository implementation support via monikers.

Changed

  • Add ability to enable/disable different generation features:
    • Sourcegraph API Documentation generation (--no-enable-api-docs flag)
    • Implementation generation (--no-enable-implemenations flag)

Fixed

  • Many issues relating to package declarations, imports and structs have been fixed.
  • Additionally, package declarations are now indexed.
  • No longer emits duplicate next edges.
  • Prints better help when uncrecognized import path

v1.6.7

Fixed

  • An issue where API docs would not be generated for packages containing multiple init functions in the same file. #195
  • An issue where API docs would not be generated for packages contianing multiple (illegal) main functions in the same file (example). #196

v1.6.6

Fixed

  • An issue where illegal code (conflicting test/non-test symbol names, such as in some moby/moby packages) would fail to index. #186

v1.6.5

Fixed

  • Fixed generation of standard library monikers. #184
  • An issue where indexing would fail if package main contained exported data types. #185

(v1.6.4 had issues in our release process, it did not correctly release: v1.6.5 corrects this.)

v1.6.3

Changed

  • Improved error messages.

v1.6.2

Fixed

  • API docs no longer incorrectly tags Functions/Variables/etc sections as a package.
  • API docs no longer emits null tag lists in violation of the spec.

v1.6.1

Fixed

  • API docs no longer incorrectly tags some methods as functions and vice-versa.

v1.6.0

Added

  • API docs now emit data linking resultSets to documentationResults, making it possible to go from hover/definition/references to API docs and vice-versa.
  • API docs now respect the latest Sourcegraph extension spec.
  • API docs now emit search keys for documentation to enable search indexing.

Changed

  • API docs index pages are now directory-structured, instead of a flat list of Go packages.
  • API docs symbols are now sorted (exported-first, alphabetical order.)

Fixed

  • API docs no longer include blank const/var declarations (const _ = ...)
  • API docs now only index top-level declarations, not e.g. variables inside functions.
  • API docs do a better job of trimming very long var/const declaration lines.
  • API docs no longer emit an empty "Functions" section if there are no functions in a package.
  • API docs no longer emit duplicate path IDs, which were forbidden in the spec.
  • API docs now emit many more tags for documentation sections: whether something is a function, const, var, public, etc.
  • API docs now tag benchmark/test functions as such properly.

v1.5.0

Added

Changed

  • 🚨 Changed package module version generation to make cross-index queries accurate. Cross-linking may not work with indexes created before v1.5.0. #152
  • Improve moniker identifiers for exported identifiers in projects with no go.mod file. #153

Fixed

  • Fixed moniker identifiers for composite structs and interfaces. #135
  • Fixed definition relationship with composite structs and interfaces. #156
  • Fixed error-on-startup caused by unresolvable module name in go.mod file. #157

v1.4.0

Added

  • Added const values to hover text. #144
  • Support replace directives in go.mod. #145
  • Infer package name from git upstream when go.mod file is absent. #149

Changed

  • 🚨 Changed moniker identifier generation to support replace directives and vanity imports. Cross-index linking will work only for indexes created on or after v1.4.0. #145
  • Deduplicated import moniker vertices. #146
  • Update lsif-protocol dependency. #136
  • Avoid scanning duplicate test packages. #138

Fixed

  • Fix bad moniker generation for cross-index fields. #148

v1.3.1

Fixed

  • Fixed type assertion panic with aliases to anonymous structs. #134

v1.3.0

Changed

  • Type alias hovers now name the aliased type e.g. type Alias = pkg.Original. #131

Fixed

  • Definition of the RHS type symbol in a type alias is no longer the type alias itself but the type being aliased. #131

v1.2.0

Changed

  • 🚨 The go mod download step is no longer performed implicitly prior to loading packages. #115
  • 🚨 Application flags have been updated. #115, #118
    • -v is now for verbosity, not --version (use -V instead for version)

    • -vv and -vvv increase verbosity levels

    • --module-root validation is fixed and can now correctly point to a directory containing a go.mod file outside of the project root

    • Renamed flags for consistent casing:

      Previous Current
      out output
      projectRoot project-root
      moduleRoot module-root
      repositoryRoot repository-root
      noOutput quiet
      noProgress no-animation

Fixed

  • Fixed a panic that occurs when a struct field contains certain structtag content. #116
  • Packages with no documentation no longer have the hover text '. #120
  • Fixed incorrect indexing of typeswitch. The symbolic variable in the type switch header and all it occurrences in the case clauses are now properly linked, and the hover text of each occurrence contains the refined type. #122

v1.1.4

Changed

  • Replaced "Preloading hover text and moniker paths" step with on-demand processing of packages. This should give a small index time speed boost and is likely to lower resident memory in some environments. #104

v1.1.3

Changed

  • Additional updates to lower resident memory. #109

v1.1.2

Fixed

  • Downgraded go1.15 to go1.14 in Dockerfile to help diagnose customer build issues. 5d8865d

v1.1.1

Fixed

  • Replaced the digest of the golang base image. ae1cd6e

v1.1.0

Added

  • Added --verbose flag. #101

Fixed

  • Fix slice out of bounds error when processing references. #103
  • Misc updates to lower resident memory. #105, #106

v1.0.0

  • Initial stable release.