1. 12 Aug, 2020 1 commit
    • Patrick Bajao's avatar
      Cache references in file · 67a20e2c
      Patrick Bajao authored
      This is to improve RAM usage when parsing references utilizing the
      existing `cache` struct.
      
      Reduces memory usage when parsing LSIF file of gitlab-workhorse
      from 7MB to 4MB.
      67a20e2c
  2. 10 Aug, 2020 2 commits
  3. 07 Aug, 2020 1 commit
    • Patrick Bajao's avatar
      Add References struct · 55363e35
      Patrick Bajao authored
      Extract references parsing logic to a separate file and struct.
      Also modified `Item` struct to have `Line` as `int32` so it'll
      be fixed size.
      
      This is in preparation for another MR wherein references will be
      stored in file instead of memory.
      55363e35
  4. 06 Aug, 2020 5 commits
  5. 31 Jul, 2020 1 commit
  6. 30 Jul, 2020 1 commit
  7. 24 Jul, 2020 1 commit
  8. 23 Jul, 2020 1 commit
  9. 16 Jul, 2020 4 commits
  10. 15 Jul, 2020 2 commits
    • Jacob Vosmaer's avatar
      Merge branch '217392-read-references' into 'master' · ce696bcf
      Jacob Vosmaer authored
      Read and parse LSIF references
      
      See merge request gitlab-org/gitlab-workhorse!524
      ce696bcf
    • Patrick Bajao's avatar
      Read and parse LSIF references · 978671ce
      Patrick Bajao authored
      In order to be able to "Find references" of a given range or
      definition, we need to be able to read `references` items from
      the LSIF file.
      
      This will then be written to the JSON file for each range via
      `references` property.
      
      The property will look something like:
      
      ```
      "references": [
        {
          "path": "main.go#L7"
        }
      ]
      ```
      
      Each reference will be an object with `path` property. The `path`
      property will point to the exact line where it is being used.
      
      This is currently behind a feature flag (`code_navigation_references`)
      which will set `ProcessLsifReferences` header to `true` when
      enabled. If `false`, the `references` won't be read and generated.
      978671ce
  11. 14 Jul, 2020 3 commits
  12. 13 Jul, 2020 3 commits
  13. 03 Jul, 2020 3 commits
  14. 25 Jun, 2020 2 commits
  15. 17 Jun, 2020 4 commits
  16. 15 Jun, 2020 2 commits
  17. 11 Jun, 2020 4 commits