pub type ShowDocumentHandler = Rc<dyn Fn(&ShowDocumentParams, &mut Window, &mut App) -> bool>;Expand description
Host hook to show a document when following an LSP location
(Go to Definition), modeled after the window/showDocument request.
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#window_showDocument
Called before the built-in behavior. Return true if the host has shown
the document (e.g. opened a docs window for a virtual/external URI);
return false to fall through to the default handling (external URIs
open in the browser, anything else jumps within the current document).
Aliased Typeยง
pub struct ShowDocumentHandler { /* private fields */ }