Skip to content

Conversation

@themkat
Copy link
Contributor

@themkat themkat commented Apr 11, 2022

Uses fwcd/kotlin-language-server#345 to get information on the main method, so Kotlin-Debug-Adapter can be used to run or debug the code without creating launch.json files. Currently no persisting of these settings (to launch.json) are done, so this is a probable future improvement.

Regular main method:
Screenshot 2022-04-11 at 15 44 31

Companion object main method:
Screenshot 2022-04-11 at 15 44 08

You may wonder: What made me, a hardcore Emacs user do this stuff for VS Code? I have to admit I have a soft spot for VSCode, and TypeScript is fun. VSCode is also the editor I recommend to people starting out with coding, as I think it is one of the best editors that are not Emacs around. (Emacs is not for everyone, never will be probably, but the ability to choose what works best for you is great!). I'm by no means a pro in VSCode extension coding, so there are probably room for improvements 🙂

Same functionality for Emacs is in progress in lsp-mode for lsp-kotlin, but not pleased yet. Proof if you are curious 😛
https://github.com/themkat/lsp-mode/tree/kotlin_run_debug

@fwcd fwcd merged commit a13c1b7 into fwcd:main Jun 8, 2022
@fwcd
Copy link
Owner

fwcd commented Jun 8, 2022

Thank you!

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