Skip to content
This repository has been archived by the owner on Apr 7, 2018. It is now read-only.

Upgrade to Scalameta 3.0.0 #22

Merged
merged 2 commits into from
Feb 2, 2018
Merged

Conversation

xeno-by
Copy link
Member

@xeno-by xeno-by commented Feb 2, 2018

No description provided.

The build did not trigger recompilation of test inputs when changing the
compiler plugin.
Copy link
Member

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

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

LGTM 👍

private def line(offset: Int): Int = {
// NOTE: Looks like some seriously crazy stuff is going on here.
// source.offsetToLine(offset)
0
Copy link
Member

Choose a reason for hiding this comment

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

I expanded on "crazy stuff" and included a comment explaining why this hack works for scala.meta.Position but is incompatible with how LSP treats line/character pairs.

Copy link
Member

Choose a reason for hiding this comment

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

In LSP, characters=Int.MaxValue falls back to the last character in the line https://microsoft.github.io/language-server-protocol/specification#position

@olafurpg olafurpg merged commit db415ad into scalameta:master Feb 2, 2018
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.

2 participants