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

Conversation

@chrismwendt
Copy link
Contributor

In #115 I forgot a few code paths where convertNode() gets called.

This adds a tokenize property to createHoverifier and plumbs it through a few of the token-finding functions.

@codecov
Copy link

codecov bot commented Jun 8, 2019

Codecov Report

Merging #144 into master will increase coverage by 0.11%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #144      +/-   ##
=========================================
+ Coverage   83.98%   84.1%   +0.11%     
=========================================
  Files          13      13              
  Lines         537     541       +4     
  Branches      127     132       +5     
=========================================
+ Hits          451     455       +4     
  Misses         86      86
Impacted Files Coverage Δ
src/token_position.ts 92.05% <100%> (+0.1%) ⬆️
src/hoverifier.ts 83.33% <75%> (+0.18%) ⬆️

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 494e3b7...17bdd8e. Read the comment docs.

// Bitbucket, punctuation characters are not wrapped in tags and the
// current offset-finding logic can't determine the offset for such
// tokens. One way to fix that is to use the CodeMirror API
// directly.
Copy link
Contributor

Choose a reason for hiding this comment

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

So we do need tokenization after all? I thought CodeMirror wrapped all tokens?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I can tell, only punctuation characters are not wrapped. Normal tokens are wrapped. Since that covers 99% of use cases, I think it's ok. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@chrismwendt chrismwendt merged commit b44aad0 into master Jun 11, 2019
@chrismwendt chrismwendt deleted the conditional-tokenization-2 branch June 11, 2019 16:43
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.

4 participants