Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Conversation

@chrismwendt
Copy link
Contributor

Motivation: some code hosts have already tokenized the code view (e.g. Bitbucket). The tokenization currently prevents text selection from working on Bitbucket https://github.com/sourcegraph/sourcegraph/issues/4051

Implementation: this lets callers specify a boolean tokenize to control whether or not tokenization occurs.

Slack conversation https://sourcegraph.slack.com/archives/CHXHX7XAS/p1559599129008000

Copy link
Contributor

@lguychard lguychard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could benefit from a really simple unit test to make sure we don't regress on this.

@felixfbecker
Copy link
Contributor

Agree on needing a test.

@chrismwendt chrismwendt force-pushed the conditional-tokenization branch from cc2661d to b27d855 Compare June 7, 2019 19:34
@codecov
Copy link

codecov bot commented Jun 7, 2019

Codecov Report

Merging #115 into master will decrease coverage by 0.06%.
The diff coverage is 85.71%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #115      +/-   ##
==========================================
- Coverage   84.05%   83.98%   -0.07%     
==========================================
  Files          13       13              
  Lines         533      537       +4     
  Branches      125      127       +2     
==========================================
+ Hits          448      451       +3     
- Misses         85       86       +1
Impacted Files Coverage Δ
src/positions.ts 96% <85.71%> (-4%) ⬇️
src/hoverifier.ts 83.15% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a3693b...39fc40a. Read the comment docs.

@chrismwendt chrismwendt force-pushed the conditional-tokenization branch 2 times, most recently from 39870fe to 9ab3049 Compare June 7, 2019 20:26
@chrismwendt chrismwendt force-pushed the conditional-tokenization branch from 9ab3049 to 6c94111 Compare June 7, 2019 20:31
@chrismwendt
Copy link
Contributor Author

✅ Added a test.

@chrismwendt chrismwendt merged commit 0e39c9b into master Jun 7, 2019
@chrismwendt chrismwendt deleted the conditional-tokenization branch June 7, 2019 20:41
@sourcegraph-bot
Copy link

🎉 This PR is included in version 6.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

5 participants