vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

General override member(s) functionality - VSCode version

Open themkat opened this issue 3 years ago • 1 comments

Simple VSCode usage of the override member protocol extension found in: https://github.com/fwcd/kotlin-language-server/pull/379 (need to be merged after that PR).

Have some TODOs I couldn't resolve for now. I suggest we keep that for future work, as it is better to have something working than to use too much time on a "perfect solution". Currently this version does exactly the same as the Emacs version, that was shown in the kotlin-language-server PR, does. Have added a nifty right-click menu to override members that make it simple. No hotkey, but that is because I don't know what people would prefer. Feel free to suggest something 🙂 You can also run it with the command palette, using the command kotlin.overrideMember.

How the selection menu looks: image

And clicking okay and seeing the overrides added to your code: image

Hope this is something other people also want 🙂 I really wanted it, at least for Emacs 😛

themkat avatar Aug 06 '22 08:08 themkat

Looks very interesting, thanks for working on this! Hope to find some time to go through this in detail soon. If LSP were to get upstream support for the override/implement UI one day, it shouldn't be too hard to migrate either.

fwcd avatar Aug 08 '22 01:08 fwcd

Thanks!

fwcd avatar Sep 13 '22 17:09 fwcd