Struct ra_ap_rust_analyzer::config::Config

source ·
pub struct Config { /* private fields */ }

Implementations§

source§

impl Config

source

pub fn user_config_path(&self) -> &VfsPath

source

pub fn same_source_root_parent_map( &self, other: &Arc<FxHashMap<SourceRootId, SourceRootId>>, ) -> bool

source

pub fn apply_change(&self, change: ConfigChange) -> (Config, ConfigErrors, bool)

Given change this generates a new Config, thereby collecting errors of type ConfigError. If there are changes that have global/client level effect, the last component of the return type will be set to true, which should be used by the GlobalState to update itself.

source§

impl Config

source

pub fn new( root_path: AbsPathBuf, caps: ClientCapabilities, workspace_roots: Vec<AbsPathBuf>, visual_studio_code_version: Option<Version>, user_config_path: Option<Utf8PathBuf>, ) -> Self

source

pub fn rediscover_workspaces(&mut self)

source

pub fn remove_workspace(&mut self, path: &AbsPath)

source

pub fn add_workspaces(&mut self, paths: impl Iterator<Item = AbsPathBuf>)

source

pub fn json_schema() -> Value

source

pub fn root_path(&self) -> &AbsPathBuf

source

pub fn root_ratoml_path(&self) -> &VfsPath

source

pub fn caps(&self) -> &ClientCapabilities

source§

impl Config

source

pub fn assist(&self, source_root: Option<SourceRootId>) -> AssistConfig

source

pub fn completion(&self, source_root: Option<SourceRootId>) -> CompletionConfig

source

pub fn detached_files(&self) -> &Vec<AbsPathBuf>

source

pub fn diagnostics( &self, source_root: Option<SourceRootId>, ) -> DiagnosticsConfig

source

pub fn expand_proc_attr_macros(&self) -> bool

source

pub fn hover_actions(&self) -> HoverActionsConfig

source

pub fn hover(&self) -> HoverConfig

source

pub fn inlay_hints(&self) -> InlayHintsConfig

source

pub fn join_lines(&self) -> JoinLinesConfig

source

pub fn highlighting_non_standard_tokens(&self) -> bool

source

pub fn highlighting_config(&self) -> HighlightConfig

source

pub fn has_linked_projects(&self) -> bool

source

pub fn linked_manifests(&self) -> impl Iterator<Item = &Utf8Path> + '_

source

pub fn has_linked_project_jsons(&self) -> bool

source

pub fn linked_or_discovered_projects(&self) -> Vec<LinkedProject>

source

pub fn did_save_text_document_dynamic_registration(&self) -> bool

source

pub fn did_change_watched_files_dynamic_registration(&self) -> bool

source

pub fn did_change_watched_files_relative_pattern_support(&self) -> bool

source

pub fn prefill_caches(&self) -> bool

source

pub fn line_folding_only(&self) -> bool

source

pub fn hierarchical_symbols(&self) -> bool

source

pub fn code_action_literals(&self) -> bool

source

pub fn work_done_progress(&self) -> bool

source

pub fn will_rename(&self) -> bool

source

pub fn change_annotation_support(&self) -> bool

source

pub fn code_action_resolve(&self) -> bool

source

pub fn signature_help_label_offsets(&self) -> bool

source

pub fn completion_label_details_support(&self) -> bool

source

pub fn semantics_tokens_augments_syntax_tokens(&self) -> bool

source

pub fn position_encoding(&self) -> PositionEncoding

source

pub fn code_action_group(&self) -> bool

source

pub fn local_docs(&self) -> bool

source

pub fn open_server_logs(&self) -> bool

source

pub fn server_status_notification(&self) -> bool

source

pub fn color_diagnostic_output(&self) -> bool

Whether the client supports colored output for full diagnostics from checkOnSave.

source

pub fn test_explorer(&self) -> bool

source

pub fn publish_diagnostics(&self) -> bool

source

pub fn diagnostics_map(&self) -> DiagnosticsMapConfig

source

pub fn extra_args(&self) -> &Vec<String>

source

pub fn extra_env(&self) -> &FxHashMap<String, String>

source

pub fn check_extra_args(&self) -> Vec<String>

source

pub fn check_extra_env(&self) -> FxHashMap<String, String>

source

pub fn lru_parse_query_capacity(&self) -> Option<usize>

source

pub fn lru_query_capacities_config(&self) -> Option<&FxHashMap<Box<str>, usize>>

source

pub fn proc_macro_srv(&self) -> Option<AbsPathBuf>

source

pub fn ignored_proc_macros(&self) -> &FxHashMap<Box<str>, Box<[Box<str>]>>

source

pub fn expand_proc_macros(&self) -> bool

source

pub fn files(&self) -> FilesConfig

source

pub fn notifications(&self) -> NotificationsConfig

source

pub fn cargo_autoreload_config(&self) -> bool

source

pub fn run_build_scripts(&self) -> bool

source

pub fn cargo(&self) -> CargoConfig

source

pub fn rustfmt(&self) -> RustfmtConfig

source

pub fn flycheck_workspace(&self) -> bool

source

pub fn cargo_test_options(&self) -> CargoOptions

source

pub fn flycheck(&self) -> FlycheckConfig

source

pub fn check_on_save(&self) -> bool

source

pub fn script_rebuild_on_save(&self) -> bool

source

pub fn runnables(&self) -> RunnablesConfig

source

pub fn find_all_refs_exclude_imports(&self) -> bool

source

pub fn find_all_refs_exclude_tests(&self) -> bool

source

pub fn snippet_cap(&self) -> Option<SnippetCap>

source

pub fn call_info(&self) -> CallInfoConfig

source

pub fn lens(&self) -> LensConfig

source

pub fn workspace_symbol(&self) -> WorkspaceSymbolConfig

source

pub fn semantic_tokens_refresh(&self) -> bool

source

pub fn code_lens_refresh(&self) -> bool

source

pub fn inlay_hints_refresh(&self) -> bool

source

pub fn insert_replace_support(&self) -> bool

source

pub fn client_commands(&self) -> ClientCommandsConfig

source

pub fn prime_caches_num_threads(&self) -> u8

source

pub fn main_loop_num_threads(&self) -> usize

source

pub fn typing_autoclose_angle(&self) -> bool

source

pub fn visual_studio_code_version(&self) -> Option<&Version>

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy 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 Config

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl !RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl !UnwindSafe for Config

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> Cast for T

source§

fn cast<U>(self, interner: <U as HasInterner>::Interner) -> U
where Self: CastTo<U>, U: HasInterner,

Cast a value to type U using CastTo.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoBox<dyn Any> for T
where T: Any,

source§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
source§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

source§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoBox<dyn Any + Sync + Send> for T
where T: Any + Send + Sync,

source§

fn into_box(self) -> Box<dyn Any + Sync + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoBox<dyn CloneAny> for T
where T: CloneAny,

source§

fn into_box(self) -> Box<dyn CloneAny>

Convert self into the appropriate boxed form.
source§

impl<T> IntoBox<dyn CloneAny + Send> for T
where T: CloneAny + Send,

source§

fn into_box(self) -> Box<dyn CloneAny + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoBox<dyn CloneAny + Sync + Send> for T
where T: CloneAny + Send + Sync,

source§

fn into_box(self) -> Box<dyn CloneAny + Sync + Send>

Convert self into the appropriate boxed form.
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

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>,

§

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>,

§

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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<'a, T> Captures<'a> for T
where T: ?Sized,

source§

impl<T> CloneAny for T
where T: Any + Clone,

source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T