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

Support kls scheme for kotlin-language-server #4051

Merged
merged 5 commits into from
Dec 3, 2023

Conversation

aiguofer
Copy link
Contributor

@aiguofer aiguofer commented May 14, 2023

When a custom kls scheme is returned by the server, parse the returned string to find the path to the container file (jar/zip/etc) and the path to the file within it that contains the code def. Make another call to the server using kotlin/jarClassContents to get the contents for the file, and save a cached copy in the lsp-kotlin-workspace-dir using the name and dir of the container file (concatenated with a .) as the cache dir name and the class file/package as the cache file name.

Open Question:

  • Currently, opening the file using with-lsp-workspace only works for Java dependencies if I don't have lsp-java enabled. When I enable that, it starts up a lsp-java server when I go to a definition in a Java file. How can I configure it to not start a java lsp server when I navigate to a java definition from kotlin-language-server?

@github-actions github-actions bot added the client One or more of lsp-mode language clients label May 14, 2023
clients/lsp-kotlin.el Outdated Show resolved Hide resolved
@yyoncho
Copy link
Member

yyoncho commented Oct 27, 2023

Can you resolve the conflicts?

@themkat
Copy link
Contributor

themkat commented Nov 28, 2023

@aiguofer , any chance to fix the conflicts here? Think your PR looks exciting, and I think it would be really cool to get it merged so more people can try it. Sorry for posting in an older PR, just thought it seemed really cool 🙂

@aiguofer
Copy link
Contributor Author

aiguofer commented Dec 3, 2023

@themkat sorry for the delay! updated

@yyoncho yyoncho merged commit 01bd566 into emacs-lsp:master Dec 3, 2023
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants