Open
Description
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:
- 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
- Add a client-to-server request
- Allow servers to provide text documents
- Add a client-to-server request
textDocument/resolve
that responds with something like a TextDocumentItem - Add a field
textDocumentProvider
to ServerCapabilities
- Add a client-to-server request
- 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
- Add a client-to-server notification
Metadata
Metadata
Assignees
Labels
No labels