Skip to content

Use official LSP method to fetch content from custom KLS URIs #161

@fwcd

Description

@fwcd

Since support for the kls URI scheme (#150) was introduced, the language server has been using the the non-standard protocol method kotlin/jarClassContents to provide source file contents for classes inside JAR archives. This is clearly not ideal, since the one of the main goals of LSP is to provide editor-agnostic support for features such as Go-To-Definition. To work around this issue, the language server has been using temporary files if the editor does not support the kls URI scheme.

There is, however, a new in-progress API (microsoft/language-server-protocol#336) that standardizes this method and we should adopt it once it gets implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeston holdWaiting for some external condition

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions