Skip to content

Improve CodeDescription or add the ability to provide text documents or handle URIs #2130

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

Open
RobbyCBennett opened this issue Apr 23, 2025 · 1 comment

Comments

@RobbyCBennett
Copy link

The CodeDescription type is a dead end if the text isn't a website or file. When this server-defined URI is produced, one would assume that the server could resolve the URI as well. However, this is unfortunately an implementation detail in the clients. For example, VS Code has UriHandler and TextDocumentContentProvider.

Different ideas for improvement:

  1. Allow servers to provide CodeDescription text
    • Add a client-to-server request codeDescription/resolve that is given a URI responds with something like a TextDocumentItem
    • Add a field codeDescriptionProvider to ServerCapabilities
  2. Allow servers to provide text documents
  3. Allow servers to perform arbitrary actions with a given URI
    • Add a client-to-server notification workspace/openUri that can do anything such as open a graphical application to display the content of a URI
    • Add a field uriProvider to ServerCapabilities
@RobbyCBennett
Copy link
Author

This is similar to #1461 and #1458, but here I give more suggestions.

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

No branches or pull requests

1 participant