Skip to main content

BuildFlags

Struct BuildFlags 

Source
pub struct BuildFlags {
Show 35 fields pub completion: bool, pub hover: bool, pub definition: bool, pub type_definition: bool, pub implementation: bool, pub references: bool, pub document_symbol: bool, pub workspace_symbol: bool, pub inlay_hints: bool, pub pull_diagnostics: bool, pub workspace_symbol_resolve: bool, pub semantic_tokens: bool, pub code_actions: bool, pub execute_command: bool, pub rename: bool, pub document_links: bool, pub selection_ranges: bool, pub on_type_formatting: bool, pub code_lens: bool, pub call_hierarchy: bool, pub type_hierarchy: bool, pub linked_editing: bool, pub inline_completion: bool, pub inline_values: bool, pub notebook_document_sync: bool, pub notebook_cell_execution: bool, pub moniker: bool, pub document_color: bool, pub source_organize_imports: bool, pub formatting: bool, pub range_formatting: bool, pub folding_range: bool, pub signature_help: bool, pub document_highlight: bool, pub declaration: bool,
}
Expand description

Build-time feature flags for conditional LSP capability compilation

Controls which capabilities are compiled into the LSP server binary, allowing for optimized builds targeted at specific Perl parsing deployment scenarios within enterprise LSP environments.

Fields§

§completion: bool

Code completion provider compilation flag

§hover: bool

Hover information provider compilation flag

§definition: bool

Go-to-definition provider compilation flag

§type_definition: bool

Type definition navigation compilation flag

§implementation: bool

Implementation finding compilation flag

§references: bool

Find-all-references provider compilation flag

§document_symbol: bool

Document symbol outline provider compilation flag

§workspace_symbol: bool

Workspace symbol search provider compilation flag

§inlay_hints: bool

Inlay hints provider compilation flag

§pull_diagnostics: bool

Pull-based diagnostics provider compilation flag

§workspace_symbol_resolve: bool

Workspace symbol resolution provider compilation flag

§semantic_tokens: bool

Semantic token highlighting provider compilation flag

§code_actions: bool

Code actions provider compilation flag

§execute_command: bool

Command execution provider compilation flag

§rename: bool

Symbol renaming provider compilation flag

§document_links: bool

Document links provider compilation flag

§selection_ranges: bool

Smart text selection ranges provider compilation flag

§on_type_formatting: bool

On-type formatting provider compilation flag

§code_lens: bool

Code lens provider compilation flag

§call_hierarchy: bool

Call hierarchy navigation provider compilation flag

§type_hierarchy: bool

Type hierarchy navigation provider compilation flag

§linked_editing: bool

Linked editing ranges provider compilation flag

§inline_completion: bool

Inline completion suggestions provider compilation flag

§inline_values: bool

Inline values for debugging provider compilation flag

§notebook_document_sync: bool

Notebook document sync provider compilation flag

§notebook_cell_execution: bool

Notebook cell execution summary tracking compilation flag

§moniker: bool

Stable symbol identifiers provider compilation flag

§document_color: bool

Document color provider compilation flag for color swatches in strings and comments

§source_organize_imports: bool

Source organize imports capability (GA-lock excludes this)

§formatting: bool

Document formatting provider compilation flag

§range_formatting: bool

Range formatting provider compilation flag

§folding_range: bool

Folding range provider compilation flag

§signature_help: bool

Signature help provider compilation flag

§document_highlight: bool

Document highlight provider compilation flag

§declaration: bool

Declaration provider compilation flag

Implementations§

Source§

impl BuildFlags

Source

pub fn to_advertised_features(&self) -> AdvertisedFeatures

Convert build flags to advertised features.

Source

pub fn to_feature_ids(&self) -> Vec<&'static str>

Convert build flags to advertised feature ids used by BDD and tooling layers.

Source

pub fn production() -> Self

Default production-ready capabilities.

Source

pub fn all() -> Self

All capabilities for testing.

Source

pub fn ga_lock() -> Self

Conservative GA-lock capabilities.

Trait Implementations§

Source§

impl Clone for BuildFlags

Source§

fn clone(&self) -> BuildFlags

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BuildFlags

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for BuildFlags

Source§

fn default() -> BuildFlags

Returns the “default value” for a type. Read more
Source§

impl PartialEq for BuildFlags

Source§

fn eq(&self, other: &BuildFlags) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for BuildFlags

Source§

impl StructuralPartialEq for BuildFlags

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.