ariadne icon indicating copy to clipboard operation
ariadne copied to clipboard

Feature Request: Suggest an edit for note/help

Open spencerpogo opened this issue 3 years ago • 3 comments

Would be useful to be able to suggest edits in a note/help message similar to how rust does it.

Need to be able to provide a new version of the line/file, not sure how that would work.

spencerpogo avatar Dec 22 '22 20:12 spencerpogo

I'll have to think about how to implement this carefully, but I agree that it's definitely desirable!

zesterer avatar Jan 02 '23 14:01 zesterer

i love the idea of doing this (i'd imagine a lot of effort might go behind the implementation of this). i just wanted to second this as i have a use case for this in statix to supply "fix" suggestions. currently, the suggestion is just supplied as part of the message as Try ... instead: Screenshot_20230108_025831

oppiliappan avatar Jan 13 '23 06:01 oppiliappan

Yes, I do a similar thing in Tao. It works for the most part, but it would be nice to have an inline hint.

image

I've been meaning to give this crate the time it needs for a full refactor, but I've yet to find the time (life keeps throwing curveballs at me). I'd definitely want this feature to be part of that.

zesterer avatar Jan 13 '23 15:01 zesterer