Config

Struct Config 

Source
pub struct Config {
Show 14 fields discovered_projects_from_filesystem: Vec<ProjectManifest>, discovered_projects_from_command: Vec<ProjectJsonFromCommand>, workspace_roots: Vec<AbsPathBuf>, caps: ClientCapabilities, root_path: AbsPathBuf, snippets: Vec<Snippet>, client_info: Option<ClientInfo>, default_config: &'static DefaultConfigData, client_config: (FullConfigInput, ConfigErrors), user_config: Option<(GlobalWorkspaceLocalConfigInput, ConfigErrors)>, ratoml_file: FxHashMap<SourceRootId, (RatomlFile, ConfigErrors)>, source_root_parent_map: Arc<FxHashMap<SourceRootId, SourceRootId>>, validation_errors: ConfigErrors, detached_files: Vec<AbsPathBuf>,
}

Fields§

§discovered_projects_from_filesystem: Vec<ProjectManifest>

Projects that have a Cargo.toml or a rust-project.json in a parent directory, so we can discover them by walking the file system.

§discovered_projects_from_command: Vec<ProjectJsonFromCommand>

Projects whose configuration was generated by a command configured in discoverConfig.

§workspace_roots: Vec<AbsPathBuf>

The workspace roots as registered by the LSP client

§caps: ClientCapabilities§root_path: AbsPathBuf

The LSP root path, deprecated in favor of workspace_roots

§snippets: Vec<Snippet>§client_info: Option<ClientInfo>§default_config: &'static DefaultConfigData§client_config: (FullConfigInput, ConfigErrors)

Config node that obtains its initial value during the server initialization and by receiving a lsp_types::notification::DidChangeConfiguration.

§user_config: Option<(GlobalWorkspaceLocalConfigInput, ConfigErrors)>

Config node whose values apply to every Rust project.

§ratoml_file: FxHashMap<SourceRootId, (RatomlFile, ConfigErrors)>§source_root_parent_map: Arc<FxHashMap<SourceRootId, SourceRootId>>

Clone of the value that is stored inside a GlobalState.

§validation_errors: ConfigErrors

Use case : It is an error to have an empty value for check_command. Since it is a global command at the moment, its final value can only be determined by traversing through global configs and the client config. However the non-null value constraint is config level agnostic, so this requires an independent error storage

§detached_files: Vec<AbsPathBuf>

Implementations§

Source§

impl Config

Source

fn cachePriming_enable(&self) -> &bool

Source

fn cachePriming_numThreads(&self) -> &NumThreads

Source

fn completion_snippets_custom( &self, ) -> &IndexMap<String, SnippetDef, FxBuildHasher>

Source

fn files_exclude(&self) -> &Vec<Utf8PathBuf>

Source

fn gotoImplementations_filterAdjacentDerives(&self) -> &bool

Source

fn highlightRelated_branchExitPoints_enable(&self) -> &bool

Source

fn highlightRelated_breakPoints_enable(&self) -> &bool

Source

fn highlightRelated_closureCaptures_enable(&self) -> &bool

Source

fn highlightRelated_exitPoints_enable(&self) -> &bool

Source

fn highlightRelated_references_enable(&self) -> &bool

Source

fn highlightRelated_yieldPoints_enable(&self) -> &bool

Source

fn hover_actions_debug_enable(&self) -> &bool

Source

fn hover_actions_enable(&self) -> &bool

Source

fn hover_actions_gotoTypeDef_enable(&self) -> &bool

Source

fn hover_actions_implementations_enable(&self) -> &bool

Source

fn hover_actions_references_enable(&self) -> &bool

Source

fn hover_actions_run_enable(&self) -> &bool

Source

fn hover_actions_updateTest_enable(&self) -> &bool

Source

fn hover_documentation_enable(&self) -> &bool

Source

fn hover_documentation_keywords_enable(&self) -> &bool

Source

fn hover_dropGlue_enable(&self) -> &bool

Source

fn hover_maxSubstitutionLength(&self) -> &Option<MaxSubstitutionLength>

Source

fn hover_memoryLayout_alignment( &self, ) -> &Option<MemoryLayoutHoverRenderKindDef>

Source

fn hover_memoryLayout_enable(&self) -> &bool

Source

fn hover_memoryLayout_niches(&self) -> &Option<bool>

Source

fn hover_memoryLayout_offset(&self) -> &Option<MemoryLayoutHoverRenderKindDef>

Source

fn hover_memoryLayout_padding(&self) -> &Option<MemoryLayoutHoverRenderKindDef>

Source

fn hover_memoryLayout_size(&self) -> &Option<MemoryLayoutHoverRenderKindDef>

Source

fn hover_show_enumVariants(&self) -> &Option<usize>

Source

fn hover_show_fields(&self) -> &Option<usize>

Source

fn hover_show_traitAssocItems(&self) -> &Option<usize>

Source

fn inlayHints_bindingModeHints_enable(&self) -> &bool

Source

fn inlayHints_chainingHints_enable(&self) -> &bool

Source

fn inlayHints_closingBraceHints_enable(&self) -> &bool

Source

fn inlayHints_closingBraceHints_minLines(&self) -> &usize

Source

fn inlayHints_closureCaptureHints_enable(&self) -> &bool

Source

fn inlayHints_closureReturnTypeHints_enable(&self) -> &ClosureReturnTypeHintsDef

Source

fn inlayHints_closureStyle(&self) -> &ClosureStyle

Source

fn inlayHints_discriminantHints_enable(&self) -> &DiscriminantHintsDef

Source

fn inlayHints_expressionAdjustmentHints_disableReborrows(&self) -> &bool

Source

fn inlayHints_expressionAdjustmentHints_enable(&self) -> &AdjustmentHintsDef

Source

fn inlayHints_expressionAdjustmentHints_hideOutsideUnsafe(&self) -> &bool

Source

fn inlayHints_expressionAdjustmentHints_mode(&self) -> &AdjustmentHintsModeDef

Source

fn inlayHints_genericParameterHints_const_enable(&self) -> &bool

Source

fn inlayHints_genericParameterHints_lifetime_enable(&self) -> &bool

Source

fn inlayHints_genericParameterHints_type_enable(&self) -> &bool

Source

fn inlayHints_implicitDrops_enable(&self) -> &bool

Source

fn inlayHints_implicitSizedBoundHints_enable(&self) -> &bool

Source

fn inlayHints_impliedDynTraitHints_enable(&self) -> &bool

Source

fn inlayHints_lifetimeElisionHints_enable(&self) -> &LifetimeElisionDef

Source

fn inlayHints_lifetimeElisionHints_useParameterNames(&self) -> &bool

Source

fn inlayHints_maxLength(&self) -> &Option<usize>

Source

fn inlayHints_parameterHints_enable(&self) -> &bool

Source

fn inlayHints_parameterHints_missingArguments_enable(&self) -> &bool

Source

fn inlayHints_rangeExclusiveHints_enable(&self) -> &bool

Source

fn inlayHints_reborrowHints_enable(&self) -> &ReborrowHintsDef

Source

fn inlayHints_renderColons(&self) -> &bool

Source

fn inlayHints_typeHints_enable(&self) -> &bool

Source

fn inlayHints_typeHints_hideClosureInitialization(&self) -> &bool

Source

fn inlayHints_typeHints_hideClosureParameter(&self) -> &bool

Source

fn inlayHints_typeHints_hideInferredTypes(&self) -> &bool

Source

fn inlayHints_typeHints_hideNamedConstructor(&self) -> &bool

Source

fn interpret_tests(&self) -> &bool

Source

fn joinLines_joinAssignments(&self) -> &bool

Source

fn joinLines_joinElseIf(&self) -> &bool

Source

fn joinLines_removeTrailingComma(&self) -> &bool

Source

fn joinLines_unwrapTrivialBlock(&self) -> &bool

Source

fn lens_debug_enable(&self) -> &bool

Source

fn lens_enable(&self) -> &bool

Source

fn lens_implementations_enable(&self) -> &bool

Source

fn lens_location(&self) -> &AnnotationLocation

Source

fn lens_references_adt_enable(&self) -> &bool

Source

fn lens_references_enumVariant_enable(&self) -> &bool

Source

fn lens_references_method_enable(&self) -> &bool

Source

fn lens_references_trait_enable(&self) -> &bool

Source

fn lens_run_enable(&self) -> &bool

Source

fn lens_updateTest_enable(&self) -> &bool

Source

fn linkedProjects(&self) -> &Vec<ManifestOrProjectJson>

Source

fn lru_capacity(&self) -> &Option<u16>

Source

fn lru_query_capacities(&self) -> &FxHashMap<Box<str>, u16>

Source

fn notifications_cargoTomlNotFound(&self) -> &bool

Source

fn numThreads(&self) -> &Option<NumThreads>

Source

fn procMacro_attributes_enable(&self) -> &bool

Source

fn procMacro_enable(&self) -> &bool

Source

fn procMacro_processes(&self) -> &NumProcesses

Source

fn procMacro_server(&self) -> &Option<Utf8PathBuf>

Source

fn profiling_memoryProfile(&self) -> &Option<Utf8PathBuf>

Source

fn references_excludeImports(&self) -> &bool

Source

fn references_excludeTests(&self) -> &bool

Source

fn semanticHighlighting_comments_enable(&self) -> &bool

Source

fn semanticHighlighting_doc_comment_inject_enable(&self) -> &bool

Source

fn semanticHighlighting_nonStandardTokens(&self) -> &bool

Source

fn semanticHighlighting_operator_enable(&self) -> &bool

Source

fn semanticHighlighting_operator_specialization_enable(&self) -> &bool

Source

fn semanticHighlighting_punctuation_enable(&self) -> &bool

Source

fn semanticHighlighting_punctuation_separate_macro_bang(&self) -> &bool

Source

fn semanticHighlighting_punctuation_specialization_enable(&self) -> &bool

Source

fn semanticHighlighting_strings_enable(&self) -> &bool

Source

fn signatureInfo_detail(&self) -> &SignatureDetail

Source

fn signatureInfo_documentation_enable(&self) -> &bool

Source

fn typing_triggerChars(&self) -> &Option<String>

Source

fn workspace_discoverConfig(&self) -> &Option<DiscoverWorkspaceConfig>

Source§

impl Config

Source

fn assist_emitMustUse(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn assist_expressionFillDefault( &self, source_root: Option<SourceRootId>, ) -> &ExprFillDefaultDef

Source

fn assist_preferSelf(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn assist_termSearch_borrowcheck( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn assist_termSearch_fuel(&self, source_root: Option<SourceRootId>) -> &usize

Source

fn completion_addSemicolonToUnit( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_autoAwait_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_autoIter_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn completion_autoimport_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_autoimport_exclude( &self, source_root: Option<SourceRootId>, ) -> &Vec<AutoImportExclusion>

Source

fn completion_autoself_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn completion_callable_snippets( &self, source_root: Option<SourceRootId>, ) -> &CallableCompletionDef

Source

fn completion_excludeTraits( &self, source_root: Option<SourceRootId>, ) -> &Vec<String>

Source

fn completion_fullFunctionSignatures_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_hideDeprecated(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn completion_limit(&self, source_root: Option<SourceRootId>) -> &Option<usize>

Source

fn completion_postfix_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn completion_privateEditable_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_termSearch_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn completion_termSearch_fuel( &self, source_root: Option<SourceRootId>, ) -> &usize

Source

fn diagnostics_disabled( &self, source_root: Option<SourceRootId>, ) -> &FxHashSet<String>

Source

fn diagnostics_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn diagnostics_experimental_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn diagnostics_remapPrefix( &self, source_root: Option<SourceRootId>, ) -> &FxHashMap<String, String>

Source

fn diagnostics_styleLints_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn diagnostics_warningsAsHint( &self, source_root: Option<SourceRootId>, ) -> &Vec<String>

Source

fn diagnostics_warningsAsInfo( &self, source_root: Option<SourceRootId>, ) -> &Vec<String>

Source

fn imports_granularity_enforce( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn imports_granularity_group( &self, source_root: Option<SourceRootId>, ) -> &ImportGranularityDef

Source

fn imports_group_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn imports_merge_glob(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn imports_preferNoStd(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn imports_preferPrelude(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn imports_prefix(&self, source_root: Option<SourceRootId>) -> &ImportPrefixDef

Source

fn imports_prefixExternPrelude( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn rename_showConflicts(&self, source_root: Option<SourceRootId>) -> &bool

Source§

impl Config

Source

fn cargo_allTargets(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn cargo_autoreload(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn cargo_buildScripts_enable(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn cargo_buildScripts_invocationStrategy( &self, source_root: Option<SourceRootId>, ) -> &InvocationStrategy

Source

fn cargo_buildScripts_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn cargo_buildScripts_rebuildOnSave( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn cargo_buildScripts_useRustcWrapper( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn cargo_cfgs(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn cargo_extraArgs(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn cargo_extraEnv( &self, source_root: Option<SourceRootId>, ) -> &FxHashMap<String, Option<String>>

Source

fn cargo_features(&self, source_root: Option<SourceRootId>) -> &CargoFeaturesDef

Source

fn cargo_noDefaultFeatures(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn cargo_noDeps(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn cargo_sysroot(&self, source_root: Option<SourceRootId>) -> &Option<String>

Source

fn cargo_sysrootSrc(&self, source_root: Option<SourceRootId>) -> &Option<String>

Source

fn cargo_target(&self, source_root: Option<SourceRootId>) -> &Option<String>

Source

fn cargo_targetDir( &self, source_root: Option<SourceRootId>, ) -> &Option<TargetDirectory>

Source

fn cfg_setTest(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn checkOnSave(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn check_allTargets(&self, source_root: Option<SourceRootId>) -> &Option<bool>

Source

fn check_command(&self, source_root: Option<SourceRootId>) -> &String

Source

fn check_extraArgs(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn check_extraEnv( &self, source_root: Option<SourceRootId>, ) -> &FxHashMap<String, Option<String>>

Source

fn check_features( &self, source_root: Option<SourceRootId>, ) -> &Option<CargoFeaturesDef>

Source

fn check_ignore(&self, source_root: Option<SourceRootId>) -> &FxHashSet<String>

Source

fn check_invocationStrategy( &self, source_root: Option<SourceRootId>, ) -> &InvocationStrategy

Source

fn check_noDefaultFeatures( &self, source_root: Option<SourceRootId>, ) -> &Option<bool>

Source

fn check_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn check_targets( &self, source_root: Option<SourceRootId>, ) -> &Option<CheckOnSaveTargets>

Source

fn check_workspace(&self, source_root: Option<SourceRootId>) -> &bool

Source

fn document_symbol_search_excludeLocals( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn procMacro_ignored( &self, source_root: Option<SourceRootId>, ) -> &FxHashMap<Box<str>, Box<[Box<str>]>>

Source

fn runnables_bench_command(&self, source_root: Option<SourceRootId>) -> &String

Source

fn runnables_bench_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn runnables_command( &self, source_root: Option<SourceRootId>, ) -> &Option<String>

Source

fn runnables_doctest_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn runnables_extraArgs(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn runnables_extraTestBinaryArgs( &self, source_root: Option<SourceRootId>, ) -> &Vec<String>

Source

fn runnables_test_command(&self, source_root: Option<SourceRootId>) -> &String

Source

fn runnables_test_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn rustc_source(&self, source_root: Option<SourceRootId>) -> &Option<String>

Source

fn rustfmt_extraArgs(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn rustfmt_overrideCommand( &self, source_root: Option<SourceRootId>, ) -> &Option<Vec<String>>

Source

fn rustfmt_rangeFormatting_enable( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn vfs_extraIncludes(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

fn workspace_symbol_search_excludeImports( &self, source_root: Option<SourceRootId>, ) -> &bool

Source

fn workspace_symbol_search_kind( &self, source_root: Option<SourceRootId>, ) -> &WorkspaceSymbolSearchKindDef

Source

fn workspace_symbol_search_limit( &self, source_root: Option<SourceRootId>, ) -> &usize

Source

fn workspace_symbol_search_scope( &self, source_root: Option<SourceRootId>, ) -> &WorkspaceSymbolSearchScopeDef

Source§

impl Config

Source§

impl Config

Source

pub fn user_config_dir_path() -> Option<AbsPathBuf>

Path to the user configuration dir. This can be seen as a generic way to define what would be $XDG_CONFIG_HOME/rust-analyzer in Linux.

Source

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

Source

fn apply_change_with_sink(&self, change: ConfigChange) -> (Config, bool)

Changes made to client and global configurations will partially not be reflected even after .apply_change() was called. The return tuple’s bool component signals whether the GlobalState should call its update_configuration() method.

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

pub fn add_discovered_project_from_command( &mut self, data: ProjectJsonData, buildfile: AbsPathBuf, )

Source

pub fn workspace_roots(&self) -> &[AbsPathBuf]

Source§

impl Config

Source

pub fn new( root_path: AbsPathBuf, caps: ClientCapabilities, workspace_roots: Vec<AbsPathBuf>, client_info: Option<ClientInfo>, ) -> 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 caps(&self) -> &ClientCapabilities

Source

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

Source

pub fn rename(&self, source_root: Option<SourceRootId>) -> RenameConfig

Source

pub fn call_hierarchy<'a>( &self, minicore: MiniCore<'a>, ) -> CallHierarchyConfig<'a>

Source

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

Source

pub fn completion_hide_deprecated(&self) -> bool

Source

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

Source

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

Source

pub fn diagnostic_fixes( &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<'a>(&self, minicore: MiniCore<'a>) -> HoverConfig<'a>

Source

pub fn goto_definition<'a>( &self, minicore: MiniCore<'a>, ) -> GotoDefinitionConfig<'a>

Source

pub fn inlay_hints<'a>(&self, minicore: MiniCore<'a>) -> InlayHintsConfig<'a>

Source

fn insert_use_config( &self, source_root: Option<SourceRootId>, ) -> InsertUseConfig

Source

pub fn join_lines(&self) -> JoinLinesConfig

Source

pub fn highlighting_non_standard_tokens(&self) -> bool

Source

pub fn highlighting_config<'a>( &self, minicore: MiniCore<'a>, ) -> HighlightConfig<'a>

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 discover_workspace_config(&self) -> Option<&DiscoverWorkspaceConfig>

Source

fn discovered_projects(&self) -> Vec<ManifestOrProjectJson>

Source

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

Source

pub fn prefill_caches(&self) -> bool

Source

pub fn publish_diagnostics(&self, source_root: Option<SourceRootId>) -> bool

Source

pub fn diagnostics_map( &self, source_root: Option<SourceRootId>, ) -> DiagnosticsMapConfig

Source

pub fn extra_args(&self, source_root: Option<SourceRootId>) -> &Vec<String>

Source

pub fn extra_env( &self, source_root: Option<SourceRootId>, ) -> &FxHashMap<String, Option<String>>

Source

pub fn check_extra_args(&self, source_root: Option<SourceRootId>) -> Vec<String>

Source

pub fn check_extra_env( &self, source_root: Option<SourceRootId>, ) -> FxHashMap<String, Option<String>>

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn expand_proc_macros(&self) -> bool

Source

pub fn files(&self) -> FilesConfig

Source

pub fn excluded(&self) -> impl Iterator<Item = AbsPathBuf> + use<'_>

Source

pub fn notifications(&self) -> NotificationsConfig

Source

pub fn cargo_autoreload_config(&self, source_root: Option<SourceRootId>) -> bool

Source

pub fn run_build_scripts(&self, source_root: Option<SourceRootId>) -> bool

Source

pub fn cargo(&self, source_root: Option<SourceRootId>) -> CargoConfig

Source

pub fn cfg_set_test(&self, source_root: Option<SourceRootId>) -> bool

Source

pub(crate) fn completion_snippets_default() -> IndexMap<String, SnippetDef, FxBuildHasher>

Source

pub fn rustfmt(&self, source_root_id: Option<SourceRootId>) -> RustfmtConfig

Source

pub fn flycheck_workspace(&self, source_root: Option<SourceRootId>) -> bool

Source

pub(crate) fn cargo_test_options( &self, source_root: Option<SourceRootId>, ) -> CargoOptions

Source

pub(crate) fn flycheck( &self, source_root: Option<SourceRootId>, ) -> FlycheckConfig

Source

fn target_dir_from_config( &self, source_root: Option<SourceRootId>, ) -> TargetDirectoryConfig

Source

pub fn check_on_save(&self, source_root: Option<SourceRootId>) -> bool

Source

pub fn script_rebuild_on_save(&self, source_root: Option<SourceRootId>) -> bool

Source

pub fn runnables(&self, source_root: Option<SourceRootId>) -> 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 goto_implementation(&self) -> GotoImplementationConfig

Source

pub fn document_symbol( &self, source_root: Option<SourceRootId>, ) -> DocumentSymbolConfig

Source

pub fn workspace_symbol( &self, source_root: Option<SourceRootId>, ) -> WorkspaceSymbolConfig

Source

pub fn client_commands(&self) -> ClientCommandsConfig

Source

pub fn prime_caches_num_threads(&self) -> usize

Source

pub fn proc_macro_num_processes(&self) -> usize

Source

pub fn main_loop_num_threads(&self) -> usize

Source

pub fn typing_trigger_chars(&self) -> &str

Source

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

Source

pub fn client_is_neovim(&self) -> bool

Methods from Deref<Target = ClientCapabilities>§

Source

fn completions_resolve_provider(&self) -> bool

Source

fn inlay_hints_resolve_provider(&self) -> bool

Source

fn experimental_bool(&self, index: &'static str) -> bool

Source

fn experimental<T: DeserializeOwned>(&self, index: &'static str) -> Option<T>

Source

pub fn has_completion_item_resolve_additionalTextEdits(&self) -> bool

Source

pub fn completion_label_details_support(&self) -> bool

Source

fn completion_item(&self) -> Option<CompletionOptionsCompletionItem>

Source

fn code_action_capabilities(&self) -> CodeActionProviderCapability

Source

pub fn negotiated_encoding(&self) -> PositionEncoding

Source

pub fn workspace_edit_resource_operations( &self, ) -> Option<&[ResourceOperationKind]>

Source

pub fn semantics_tokens_augments_syntax_tokens(&self) -> bool

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 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 text_document_diagnostic(&self) -> bool

Source

pub fn code_action_group(&self) -> bool

Source

pub fn commands(&self) -> Option<ClientCommandOptions>

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 snippet_text_edit(&self) -> bool

Source

pub fn hover_actions(&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 completion_snippet(&self) -> bool

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 diagnostics_refresh(&self) -> bool

Source

pub fn inlay_hint_resolve_support_properties(&self) -> FxHashSet<&str>

Source

pub fn completion_resolve_support_properties(&self) -> FxHashSet<&str>

Source

pub fn hover_markdown_support(&self) -> bool

Source

pub fn insert_replace_support(&self) -> bool

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

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 Config

Source§

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

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

impl Deref for Config

Source§

type Target = ClientCapabilities

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

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

impl<T, R> CollectAndApply<T, R> for T

§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

§

type Output = R

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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.

§

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

§

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

Convert self into the appropriate boxed form.
§

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

§

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

Convert self into the appropriate boxed form.
§

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

§

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

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.
§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

§

fn upcast(self, interner: I) -> U

§

impl<I, T> UpcastFrom<I, T> for T

§

fn upcast_from(from: T, _tcx: I) -> T

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

§

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