-
Notifications
You must be signed in to change notification settings - Fork 16
fix: code intel on diffs with newly added files #294
base: master
Are you sure you want to change the base?
Conversation
beb7975
to
f98a9a8
Compare
I still see a lot of glitchiness with extensions enabled on this PR:
I don't think this PR causes the first issue, but it may cause or exacerbate the 2nd one. This PR is likely a partial fix, but we can't be sure when there are so many other issues, so let's fix those first before merging this PR. |
I have been testing this with:
Strangely, I can't repro the original issue. All hovers work, above and below the added file. |
I followed your conditions above using browser ext version 2.0.0, and I can still repro the original issue. |
@sqs I can't repro either of these issues with this branch, can you point me to particular reproducible examples?
I don't see how this PR would exacerbate the second issue. It simply checks adds a check to make sure that we are trying to add a hover to a line of code, and not one of the blue borders. I could see my recent commit in |
f98a9a8
to
8f8657e
Compare
Here's how to move this PR to https://github.com/sourcegraph/sourcegraph/tree/master/packages/browser-extensions
|
This PR changes:
Fixes https://github.com/sourcegraph/sourcegraph/issues/605
This blue border on newly added files in diffs counted as a row, and since it doesn't have any class names, it isn't filtered out in
isCode
. Hence, we can't assume thatline
is non-null.Testing plan:
I've tested on this PR: https://github.com/sourcegraph/sourcegraph/pull/586/files. The browser extension would break once scrolling past licenseusercount.go. I confirmed this PR fixes the issue so code intel works.
I have tested on: