Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ivy Completions Dash Fix #4405

Merged
merged 1 commit into from Sep 19, 2022

Conversation

LaurenceWarne
Copy link
Contributor

Hi! This is a small PR which fixes TextEdit ranges when - appears in a dependency used for ivy completions. Previously for example, selecting io.get-coursier at io.get-coursi| would leave you with io.get-io.get-coursier.

I tried to find out if there were any other chars that potentially could appear in artefact ids, https://maven.apache.org/guides/mini/guide-naming-conventions.html is not overly specific: then you can choose whatever name you want with lowercase letters and no strange symbols 馃槅

Also snuck in: remove setting the Scala binary version when creating the coursier api which is no longer needed since #4390 (mentioned in previous PR).

Fix the incorrect start of text edits when '-' appears in a dependency
used for ivy completions.  For example `io.get-coursier`.  Also remove
the setting of the Scala binary version when creating the coursier api
as this is now handled by coursier-interface in 1.0.9.
Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@tgodzik tgodzik merged commit 4a857a5 into scalameta:main Sep 19, 2022
@LaurenceWarne LaurenceWarne deleted the fix-dash-in-ivy-completions branch September 25, 2022 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants