Skip to content

Conversation

@themkat
Copy link
Contributor

@themkat themkat commented Aug 6, 2022

Simple VSCode usage of the override member protocol extension found in: fwcd/kotlin-language-server#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 😛

@fwcd
Copy link
Owner

fwcd commented Aug 8, 2022

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
Copy link
Owner

fwcd commented Sep 13, 2022

Thanks!

@fwcd fwcd merged commit a222bff into fwcd:main Sep 13, 2022
@themkat themkat deleted the override_members branch September 13, 2022 17:13
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.

2 participants