Struct lsp_types::GeneralClientCapabilities
source · pub struct GeneralClientCapabilities {
pub regular_expressions: Option<RegularExpressionsClientCapabilities>,
pub markdown: Option<MarkdownClientCapabilities>,
pub stale_request_support: Option<StaleRequestSupportClientCapabilities>,
pub position_encodings: Option<Vec<PositionEncodingKind>>,
}
Fields§
§regular_expressions: Option<RegularExpressionsClientCapabilities>
Client capabilities specific to regular expressions.
@since 3.16.0
markdown: Option<MarkdownClientCapabilities>
Client capabilities specific to the client’s markdown parser.
@since 3.16.0
stale_request_support: Option<StaleRequestSupportClientCapabilities>
Client capability that signals how the client handles stale requests (e.g. a request for which the client will not process the response anymore since the information is outdated).
@since 3.17.0
position_encodings: Option<Vec<PositionEncodingKind>>
The position encodings supported by the client. Client and server have to agree on the same position encoding to ensure that offsets (e.g. character position in a line) are interpreted the same on both side.
To keep the protocol backwards compatible the following applies: if the value ‘utf-16’ is missing from the array of position encodings servers can assume that the client supports UTF-16. UTF-16 is therefore a mandatory encoding.
If omitted it defaults to [‘utf-16’].
Implementation considerations: since the conversion from one encoding into another requires the content of the file / line the conversion is best done where the file is read which is usually on the server side.
@since 3.17.0
Trait Implementations§
source§impl Clone for GeneralClientCapabilities
impl Clone for GeneralClientCapabilities
source§fn clone(&self) -> GeneralClientCapabilities
fn clone(&self) -> GeneralClientCapabilities
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GeneralClientCapabilities
impl Debug for GeneralClientCapabilities
source§impl Default for GeneralClientCapabilities
impl Default for GeneralClientCapabilities
source§fn default() -> GeneralClientCapabilities
fn default() -> GeneralClientCapabilities
source§impl<'de> Deserialize<'de> for GeneralClientCapabilities
impl<'de> Deserialize<'de> for GeneralClientCapabilities
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>,
impl StructuralPartialEq for GeneralClientCapabilities
Auto Trait Implementations§
impl Freeze for GeneralClientCapabilities
impl RefUnwindSafe for GeneralClientCapabilities
impl Send for GeneralClientCapabilities
impl Sync for GeneralClientCapabilities
impl Unpin for GeneralClientCapabilities
impl UnwindSafe for GeneralClientCapabilities
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)