Skip to content

Go-to-definition does not select new file in tree

Created by: sqs

Repro:

  1. Go to https://sourcegraph.com/github.com/eslint/eslint/-/blob/lib/api.js#L9:29
  2. Hover over the "./linter" in require("./linter") and Go to definition (the URL is https://sourcegraph.com/github.com/eslint/eslint/-/blob/lib/linter/index.js#L1:1)

Actual

You're taken to the correct file, but the file tree sidebar still shows the previous file you were looking at (lib/api.js):

image

Expected

The file tree should open to and select lib/linter/index.js.