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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows tools to also use the end of a range besides just the start #239

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

svdo
Copy link
Contributor

@svdo svdo commented Oct 1, 2020

I'm writing an editor plugin that will allow replacing of Kibit suggestions as you type, one by one. In order to do that, I need to tell the editor what range (start line/col to end line/col) can be replaced. Kibit internally has that information, but not in a way that I can access it from the API (unless I missed something of course).

This pull request exposes the :end-line and :end-column meta so that I can use it in my editor plugin.

(Note that I'm suing identity as a reporter so that I get the data structure for further processing in my plugin.)

I would be super-greatful if this can be merged and deployed, so that I don't have to publish my own fork of Kibit, which I'd rather avoid. Many thanks!

This way tools can use them to easily mark the range of the text that
Kibit can replace.
@svdo
Copy link
Contributor Author

svdo commented Feb 2, 2021

Hi! Can I interest someone in merging this? @danielcompton or @carrete maybe? Thanks!! :)

@carrete
Copy link
Contributor

carrete commented Feb 3, 2021

Sorry @svdo, I don't have commit permissions.

@danielcompton danielcompton merged commit ccd8c7d into clj-commons:master Apr 13, 2021
@danielcompton
Copy link
Member

Sorry for the delay! This is merged now. I'll try and get a release out soon.

@svdo
Copy link
Contributor Author

svdo commented Apr 13, 2021

No worries, thank you!

@NoahTheDuke
Copy link
Collaborator

Released in 0.1.10.

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.

4 participants