Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

fix: code intel broken on diffs with newly added files #846

Merged
merged 3 commits into from
Nov 6, 2018

Conversation

attfarhan
Copy link
Contributor

PR from sourcegraph/browser-extensions#294

This PR changes:

Fixes sourcegraph/sourcegraph#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 that line is non-null.

image

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.

This PR updates the CHANGELOG.md file to describe any user-facing changes.
This PR does not need to update the CHANGELOG because ...

@attfarhan attfarhan requested a review from ijsnow as a code owner November 6, 2018 21:03
@attfarhan
Copy link
Contributor Author

@ijsnow can we merge this?

@attfarhan attfarhan changed the title Code intel diffs fix: code intel broken on diffs with newly added files Nov 6, 2018
@attfarhan attfarhan merged commit 7b76728 into master Nov 6, 2018
@attfarhan attfarhan deleted the code-intel-diffs branch November 6, 2018 23:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser extension: code intelligence on diffs does not work
2 participants