Struct lsp_types::ShowDocumentParams
source · pub struct ShowDocumentParams {
pub uri: Url,
pub external: Option<bool>,
pub take_focus: Option<bool>,
pub selection: Option<Range>,
}
Expand description
Params to show a document.
@since 3.16.0
Fields§
§uri: Url
The document uri to show.
external: Option<bool>
Indicates to show the resource in an external program.
To show for example https://code.visualstudio.com/
in the default WEB browser set external
to true
.
take_focus: Option<bool>
An optional property to indicate whether the editor showing the document should take focus or not. Clients might ignore this property if an external program in started.
selection: Option<Range>
An optional selection range if the document is a text document. Clients might ignore the property if an external program is started or the file is not a text file.
Trait Implementations§
source§impl Clone for ShowDocumentParams
impl Clone for ShowDocumentParams
source§fn clone(&self) -> ShowDocumentParams
fn clone(&self) -> ShowDocumentParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ShowDocumentParams
impl Debug for ShowDocumentParams
source§impl<'de> Deserialize<'de> for ShowDocumentParams
impl<'de> Deserialize<'de> for ShowDocumentParams
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ShowDocumentParams
impl PartialEq for ShowDocumentParams
source§fn eq(&self, other: &ShowDocumentParams) -> bool
fn eq(&self, other: &ShowDocumentParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ShowDocumentParams
impl Serialize for ShowDocumentParams
impl StructuralPartialEq for ShowDocumentParams
Auto Trait Implementations§
impl Freeze for ShowDocumentParams
impl RefUnwindSafe for ShowDocumentParams
impl Send for ShowDocumentParams
impl Sync for ShowDocumentParams
impl Unpin for ShowDocumentParams
impl UnwindSafe for ShowDocumentParams
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more