mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +00:00
Make almost every client config global
This commit is contained in:
parent
a7207f4b64
commit
23eb20794e
1 changed files with 211 additions and 210 deletions
|
@ -84,6 +84,154 @@ config_data! {
|
|||
files_excludeDirs: Vec<Utf8PathBuf> = vec![],
|
||||
|
||||
|
||||
|
||||
/// Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.
|
||||
highlightRelated_breakPoints_enable: bool = true,
|
||||
/// Enables highlighting of all captures of a closure while the cursor is on the `|` or move keyword of a closure.
|
||||
highlightRelated_closureCaptures_enable: bool = true,
|
||||
/// Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).
|
||||
highlightRelated_exitPoints_enable: bool = true,
|
||||
/// Enables highlighting of related references while the cursor is on any identifier.
|
||||
highlightRelated_references_enable: bool = true,
|
||||
/// Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.
|
||||
highlightRelated_yieldPoints_enable: bool = true,
|
||||
|
||||
/// Whether to show `Debug` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_debug_enable: bool = true,
|
||||
/// Whether to show HoverActions in Rust files.
|
||||
hover_actions_enable: bool = true,
|
||||
/// Whether to show `Go to Type Definition` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_gotoTypeDef_enable: bool = true,
|
||||
/// Whether to show `Implementations` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_implementations_enable: bool = true,
|
||||
/// Whether to show `References` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_references_enable: bool = false,
|
||||
/// Whether to show `Run` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_run_enable: bool = true,
|
||||
|
||||
/// Whether to show documentation on hover.
|
||||
hover_documentation_enable: bool = true,
|
||||
/// Whether to show keyword hover popups. Only applies when
|
||||
/// `#rust-analyzer.hover.documentation.enable#` is set.
|
||||
hover_documentation_keywords_enable: bool = true,
|
||||
/// Use markdown syntax for links on hover.
|
||||
hover_links_enable: bool = true,
|
||||
/// How to render the align information in a memory layout hover.
|
||||
hover_memoryLayout_alignment: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Hexadecimal),
|
||||
/// Whether to show memory layout data on hover.
|
||||
hover_memoryLayout_enable: bool = true,
|
||||
/// How to render the niche information in a memory layout hover.
|
||||
hover_memoryLayout_niches: Option<bool> = Some(false),
|
||||
/// How to render the offset information in a memory layout hover.
|
||||
hover_memoryLayout_offset: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Hexadecimal),
|
||||
/// How to render the size information in a memory layout hover.
|
||||
hover_memoryLayout_size: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Both),
|
||||
|
||||
/// How many variants of an enum to display when hovering on. Show none if empty.
|
||||
hover_show_enumVariants: Option<usize> = Some(5),
|
||||
/// How many fields of a struct, variant or union to display when hovering on. Show none if empty.
|
||||
hover_show_fields: Option<usize> = Some(5),
|
||||
/// How many associated items of a trait to display when hovering a trait.
|
||||
hover_show_traitAssocItems: Option<usize> = None,
|
||||
|
||||
/// Whether to show inlay type hints for binding modes.
|
||||
inlayHints_bindingModeHints_enable: bool = false,
|
||||
/// Whether to show inlay type hints for method chains.
|
||||
inlayHints_chainingHints_enable: bool = true,
|
||||
/// Whether to show inlay hints after a closing `}` to indicate what item it belongs to.
|
||||
inlayHints_closingBraceHints_enable: bool = true,
|
||||
/// Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1
|
||||
/// to always show them).
|
||||
inlayHints_closingBraceHints_minLines: usize = 25,
|
||||
/// Whether to show inlay hints for closure captures.
|
||||
inlayHints_closureCaptureHints_enable: bool = false,
|
||||
/// Whether to show inlay type hints for return types of closures.
|
||||
inlayHints_closureReturnTypeHints_enable: ClosureReturnTypeHintsDef = ClosureReturnTypeHintsDef::Never,
|
||||
/// Closure notation in type and chaining inlay hints.
|
||||
inlayHints_closureStyle: ClosureStyle = ClosureStyle::ImplFn,
|
||||
/// Whether to show enum variant discriminant hints.
|
||||
inlayHints_discriminantHints_enable: DiscriminantHintsDef = DiscriminantHintsDef::Never,
|
||||
/// Whether to show inlay hints for type adjustments.
|
||||
inlayHints_expressionAdjustmentHints_enable: AdjustmentHintsDef = AdjustmentHintsDef::Never,
|
||||
/// Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
|
||||
inlayHints_expressionAdjustmentHints_hideOutsideUnsafe: bool = false,
|
||||
/// Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).
|
||||
inlayHints_expressionAdjustmentHints_mode: AdjustmentHintsModeDef = AdjustmentHintsModeDef::Prefix,
|
||||
/// Whether to show const generic parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_const_enable: bool= true,
|
||||
/// Whether to show generic lifetime parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_lifetime_enable: bool = false,
|
||||
/// Whether to show generic type parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_type_enable: bool = false,
|
||||
/// Whether to show implicit drop hints.
|
||||
inlayHints_implicitDrops_enable: bool = false,
|
||||
/// Whether to show inlay type hints for elided lifetimes in function signatures.
|
||||
inlayHints_lifetimeElisionHints_enable: LifetimeElisionDef = LifetimeElisionDef::Never,
|
||||
/// Whether to prefer using parameter names as the name for elided lifetime hints if possible.
|
||||
inlayHints_lifetimeElisionHints_useParameterNames: bool = false,
|
||||
/// Maximum length for inlay hints. Set to null to have an unlimited length.
|
||||
inlayHints_maxLength: Option<usize> = Some(25),
|
||||
/// Whether to show function parameter name inlay hints at the call
|
||||
/// site.
|
||||
inlayHints_parameterHints_enable: bool = true,
|
||||
/// Whether to show exclusive range inlay hints.
|
||||
inlayHints_rangeExclusiveHints_enable: bool = false,
|
||||
/// Whether to show inlay hints for compiler inserted reborrows.
|
||||
/// This setting is deprecated in favor of #rust-analyzer.inlayHints.expressionAdjustmentHints.enable#.
|
||||
inlayHints_reborrowHints_enable: ReborrowHintsDef = ReborrowHintsDef::Never,
|
||||
/// Whether to render leading colons for type hints, and trailing colons for parameter hints.
|
||||
inlayHints_renderColons: bool = true,
|
||||
/// Whether to show inlay type hints for variables.
|
||||
inlayHints_typeHints_enable: bool = true,
|
||||
/// Whether to hide inlay type hints for `let` statements that initialize to a closure.
|
||||
/// Only applies to closures with blocks, same as `#rust-analyzer.inlayHints.closureReturnTypeHints.enable#`.
|
||||
inlayHints_typeHints_hideClosureInitialization: bool = false,
|
||||
/// Whether to hide inlay type hints for constructors.
|
||||
inlayHints_typeHints_hideNamedConstructor: bool = false,
|
||||
|
||||
/// Enables the experimental support for interpreting tests.
|
||||
interpret_tests: bool = false,
|
||||
|
||||
/// Join lines merges consecutive declaration and initialization of an assignment.
|
||||
joinLines_joinAssignments: bool = true,
|
||||
/// Join lines inserts else between consecutive ifs.
|
||||
joinLines_joinElseIf: bool = true,
|
||||
/// Join lines removes trailing commas.
|
||||
joinLines_removeTrailingComma: bool = true,
|
||||
/// Join lines unwraps trivial blocks.
|
||||
joinLines_unwrapTrivialBlock: bool = true,
|
||||
|
||||
/// Whether to show `Debug` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_debug_enable: bool = true,
|
||||
/// Whether to show CodeLens in Rust files.
|
||||
lens_enable: bool = true,
|
||||
/// Whether to show `Implementations` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_implementations_enable: bool = true,
|
||||
/// Where to render annotations.
|
||||
lens_location: AnnotationLocation = AnnotationLocation::AboveName,
|
||||
/// Whether to show `References` lens for Struct, Enum, and Union.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_adt_enable: bool = false,
|
||||
/// Whether to show `References` lens for Enum Variants.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_enumVariant_enable: bool = false,
|
||||
/// Whether to show `Method References` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_method_enable: bool = false,
|
||||
/// Whether to show `References` lens for Trait.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_trait_enable: bool = false,
|
||||
/// Whether to show `Run` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_run_enable: bool = true,
|
||||
|
||||
/// Disable project auto-discovery in favor of explicitly specified set
|
||||
/// of projects.
|
||||
///
|
||||
|
@ -97,6 +245,69 @@ config_data! {
|
|||
/// Sets the LRU capacity of the specified queries.
|
||||
lru_query_capacities: FxHashMap<Box<str>, u16> = FxHashMap::default(),
|
||||
|
||||
/// Whether to show `can't find Cargo.toml` error message.
|
||||
notifications_cargoTomlNotFound: bool = true,
|
||||
|
||||
/// How many worker threads in the main loop. The default `null` means to pick automatically.
|
||||
numThreads: Option<NumThreads> = None,
|
||||
|
||||
/// Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.
|
||||
procMacro_attributes_enable: bool = true,
|
||||
/// Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.
|
||||
procMacro_enable: bool = true,
|
||||
/// Internal config, path to proc-macro server executable.
|
||||
procMacro_server: Option<Utf8PathBuf> = None,
|
||||
|
||||
/// Exclude imports from find-all-references.
|
||||
references_excludeImports: bool = false,
|
||||
|
||||
/// Exclude tests from find-all-references.
|
||||
references_excludeTests: bool = false,
|
||||
|
||||
/// Inject additional highlighting into doc comments.
|
||||
///
|
||||
/// When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
|
||||
/// doc links.
|
||||
semanticHighlighting_doc_comment_inject_enable: bool = true,
|
||||
/// Whether the server is allowed to emit non-standard tokens and modifiers.
|
||||
semanticHighlighting_nonStandardTokens: bool = true,
|
||||
/// Use semantic tokens for operators.
|
||||
///
|
||||
/// When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
|
||||
/// they are tagged with modifiers.
|
||||
semanticHighlighting_operator_enable: bool = true,
|
||||
/// Use specialized semantic tokens for operators.
|
||||
///
|
||||
/// When enabled, rust-analyzer will emit special token types for operator tokens instead
|
||||
/// of the generic `operator` token type.
|
||||
semanticHighlighting_operator_specialization_enable: bool = false,
|
||||
/// Use semantic tokens for punctuation.
|
||||
///
|
||||
/// When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
|
||||
/// they are tagged with modifiers or have a special role.
|
||||
semanticHighlighting_punctuation_enable: bool = false,
|
||||
/// When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
|
||||
/// calls.
|
||||
semanticHighlighting_punctuation_separate_macro_bang: bool = false,
|
||||
/// Use specialized semantic tokens for punctuation.
|
||||
///
|
||||
/// When enabled, rust-analyzer will emit special token types for punctuation tokens instead
|
||||
/// of the generic `punctuation` token type.
|
||||
semanticHighlighting_punctuation_specialization_enable: bool = false,
|
||||
/// Use semantic tokens for strings.
|
||||
///
|
||||
/// In some editors (e.g. vscode) semantic tokens override other highlighting grammars.
|
||||
/// By disabling semantic tokens for strings, other grammars can be used to highlight
|
||||
/// their contents.
|
||||
semanticHighlighting_strings_enable: bool = true,
|
||||
|
||||
/// Show full signature of the callable. Only shows parameters if disabled.
|
||||
signatureInfo_detail: SignatureDetail = SignatureDetail::Full,
|
||||
/// Show documentation.
|
||||
signatureInfo_documentation_enable: bool = true,
|
||||
|
||||
/// Whether to insert closing angle brackets when typing an opening angle bracket of a generic argument list.
|
||||
typing_autoClosingAngleBrackets_enable: bool = false,
|
||||
|
||||
|
||||
/// Enables automatic discovery of projects using [`DiscoverWorkspaceConfig::command`].
|
||||
|
@ -531,216 +742,6 @@ config_data! {
|
|||
/// Controls file watching implementation.
|
||||
files_watcher: FilesWatcherDef = FilesWatcherDef::Client,
|
||||
|
||||
/// Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.
|
||||
highlightRelated_breakPoints_enable: bool = true,
|
||||
/// Enables highlighting of all captures of a closure while the cursor is on the `|` or move keyword of a closure.
|
||||
highlightRelated_closureCaptures_enable: bool = true,
|
||||
/// Enables highlighting of all exit points while the cursor is on any `return`, `?`, `fn`, or return type arrow (`->`).
|
||||
highlightRelated_exitPoints_enable: bool = true,
|
||||
/// Enables highlighting of related references while the cursor is on any identifier.
|
||||
highlightRelated_references_enable: bool = true,
|
||||
/// Enables highlighting of all break points for a loop or block context while the cursor is on any `async` or `await` keywords.
|
||||
highlightRelated_yieldPoints_enable: bool = true,
|
||||
|
||||
/// Whether to show `Debug` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_debug_enable: bool = true,
|
||||
/// Whether to show HoverActions in Rust files.
|
||||
hover_actions_enable: bool = true,
|
||||
/// Whether to show `Go to Type Definition` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_gotoTypeDef_enable: bool = true,
|
||||
/// Whether to show `Implementations` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_implementations_enable: bool = true,
|
||||
/// Whether to show `References` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_references_enable: bool = false,
|
||||
/// Whether to show `Run` action. Only applies when
|
||||
/// `#rust-analyzer.hover.actions.enable#` is set.
|
||||
hover_actions_run_enable: bool = true,
|
||||
|
||||
/// Whether to show documentation on hover.
|
||||
hover_documentation_enable: bool = true,
|
||||
/// Whether to show keyword hover popups. Only applies when
|
||||
/// `#rust-analyzer.hover.documentation.enable#` is set.
|
||||
hover_documentation_keywords_enable: bool = true,
|
||||
/// Use markdown syntax for links on hover.
|
||||
hover_links_enable: bool = true,
|
||||
/// How to render the align information in a memory layout hover.
|
||||
hover_memoryLayout_alignment: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Hexadecimal),
|
||||
/// Whether to show memory layout data on hover.
|
||||
hover_memoryLayout_enable: bool = true,
|
||||
/// How to render the niche information in a memory layout hover.
|
||||
hover_memoryLayout_niches: Option<bool> = Some(false),
|
||||
/// How to render the offset information in a memory layout hover.
|
||||
hover_memoryLayout_offset: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Hexadecimal),
|
||||
/// How to render the size information in a memory layout hover.
|
||||
hover_memoryLayout_size: Option<MemoryLayoutHoverRenderKindDef> = Some(MemoryLayoutHoverRenderKindDef::Both),
|
||||
|
||||
/// How many variants of an enum to display when hovering on. Show none if empty.
|
||||
hover_show_enumVariants: Option<usize> = Some(5),
|
||||
/// How many fields of a struct, variant or union to display when hovering on. Show none if empty.
|
||||
hover_show_fields: Option<usize> = Some(5),
|
||||
/// How many associated items of a trait to display when hovering a trait.
|
||||
hover_show_traitAssocItems: Option<usize> = None,
|
||||
|
||||
/// Whether to show inlay type hints for binding modes.
|
||||
inlayHints_bindingModeHints_enable: bool = false,
|
||||
/// Whether to show inlay type hints for method chains.
|
||||
inlayHints_chainingHints_enable: bool = true,
|
||||
/// Whether to show inlay hints after a closing `}` to indicate what item it belongs to.
|
||||
inlayHints_closingBraceHints_enable: bool = true,
|
||||
/// Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1
|
||||
/// to always show them).
|
||||
inlayHints_closingBraceHints_minLines: usize = 25,
|
||||
/// Whether to show inlay hints for closure captures.
|
||||
inlayHints_closureCaptureHints_enable: bool = false,
|
||||
/// Whether to show inlay type hints for return types of closures.
|
||||
inlayHints_closureReturnTypeHints_enable: ClosureReturnTypeHintsDef = ClosureReturnTypeHintsDef::Never,
|
||||
/// Closure notation in type and chaining inlay hints.
|
||||
inlayHints_closureStyle: ClosureStyle = ClosureStyle::ImplFn,
|
||||
/// Whether to show enum variant discriminant hints.
|
||||
inlayHints_discriminantHints_enable: DiscriminantHintsDef = DiscriminantHintsDef::Never,
|
||||
/// Whether to show inlay hints for type adjustments.
|
||||
inlayHints_expressionAdjustmentHints_enable: AdjustmentHintsDef = AdjustmentHintsDef::Never,
|
||||
/// Whether to hide inlay hints for type adjustments outside of `unsafe` blocks.
|
||||
inlayHints_expressionAdjustmentHints_hideOutsideUnsafe: bool = false,
|
||||
/// Whether to show inlay hints as postfix ops (`.*` instead of `*`, etc).
|
||||
inlayHints_expressionAdjustmentHints_mode: AdjustmentHintsModeDef = AdjustmentHintsModeDef::Prefix,
|
||||
/// Whether to show const generic parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_const_enable: bool= true,
|
||||
/// Whether to show generic lifetime parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_lifetime_enable: bool = false,
|
||||
/// Whether to show generic type parameter name inlay hints.
|
||||
inlayHints_genericParameterHints_type_enable: bool = false,
|
||||
/// Whether to show implicit drop hints.
|
||||
inlayHints_implicitDrops_enable: bool = false,
|
||||
/// Whether to show inlay type hints for elided lifetimes in function signatures.
|
||||
inlayHints_lifetimeElisionHints_enable: LifetimeElisionDef = LifetimeElisionDef::Never,
|
||||
/// Whether to prefer using parameter names as the name for elided lifetime hints if possible.
|
||||
inlayHints_lifetimeElisionHints_useParameterNames: bool = false,
|
||||
/// Maximum length for inlay hints. Set to null to have an unlimited length.
|
||||
inlayHints_maxLength: Option<usize> = Some(25),
|
||||
/// Whether to show function parameter name inlay hints at the call
|
||||
/// site.
|
||||
inlayHints_parameterHints_enable: bool = true,
|
||||
/// Whether to show exclusive range inlay hints.
|
||||
inlayHints_rangeExclusiveHints_enable: bool = false,
|
||||
/// Whether to show inlay hints for compiler inserted reborrows.
|
||||
/// This setting is deprecated in favor of #rust-analyzer.inlayHints.expressionAdjustmentHints.enable#.
|
||||
inlayHints_reborrowHints_enable: ReborrowHintsDef = ReborrowHintsDef::Never,
|
||||
/// Whether to render leading colons for type hints, and trailing colons for parameter hints.
|
||||
inlayHints_renderColons: bool = true,
|
||||
/// Whether to show inlay type hints for variables.
|
||||
inlayHints_typeHints_enable: bool = true,
|
||||
/// Whether to hide inlay type hints for `let` statements that initialize to a closure.
|
||||
/// Only applies to closures with blocks, same as `#rust-analyzer.inlayHints.closureReturnTypeHints.enable#`.
|
||||
inlayHints_typeHints_hideClosureInitialization: bool = false,
|
||||
/// Whether to hide inlay type hints for constructors.
|
||||
inlayHints_typeHints_hideNamedConstructor: bool = false,
|
||||
|
||||
/// Enables the experimental support for interpreting tests.
|
||||
interpret_tests: bool = false,
|
||||
|
||||
/// Join lines merges consecutive declaration and initialization of an assignment.
|
||||
joinLines_joinAssignments: bool = true,
|
||||
/// Join lines inserts else between consecutive ifs.
|
||||
joinLines_joinElseIf: bool = true,
|
||||
/// Join lines removes trailing commas.
|
||||
joinLines_removeTrailingComma: bool = true,
|
||||
/// Join lines unwraps trivial blocks.
|
||||
joinLines_unwrapTrivialBlock: bool = true,
|
||||
|
||||
/// Whether to show `Debug` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_debug_enable: bool = true,
|
||||
/// Whether to show CodeLens in Rust files.
|
||||
lens_enable: bool = true,
|
||||
/// Whether to show `Implementations` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_implementations_enable: bool = true,
|
||||
/// Where to render annotations.
|
||||
lens_location: AnnotationLocation = AnnotationLocation::AboveName,
|
||||
/// Whether to show `References` lens for Struct, Enum, and Union.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_adt_enable: bool = false,
|
||||
/// Whether to show `References` lens for Enum Variants.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_enumVariant_enable: bool = false,
|
||||
/// Whether to show `Method References` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_method_enable: bool = false,
|
||||
/// Whether to show `References` lens for Trait.
|
||||
/// Only applies when `#rust-analyzer.lens.enable#` is set.
|
||||
lens_references_trait_enable: bool = false,
|
||||
/// Whether to show `Run` lens. Only applies when
|
||||
/// `#rust-analyzer.lens.enable#` is set.
|
||||
lens_run_enable: bool = true,
|
||||
|
||||
/// Whether to show `can't find Cargo.toml` error message.
|
||||
notifications_cargoTomlNotFound: bool = true,
|
||||
|
||||
/// How many worker threads in the main loop. The default `null` means to pick automatically.
|
||||
numThreads: Option<NumThreads> = None,
|
||||
|
||||
/// Expand attribute macros. Requires `#rust-analyzer.procMacro.enable#` to be set.
|
||||
procMacro_attributes_enable: bool = true,
|
||||
/// Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.
|
||||
procMacro_enable: bool = true,
|
||||
/// Internal config, path to proc-macro server executable.
|
||||
procMacro_server: Option<Utf8PathBuf> = None,
|
||||
|
||||
/// Exclude imports from find-all-references.
|
||||
references_excludeImports: bool = false,
|
||||
|
||||
/// Exclude tests from find-all-references.
|
||||
references_excludeTests: bool = false,
|
||||
|
||||
/// Inject additional highlighting into doc comments.
|
||||
///
|
||||
/// When enabled, rust-analyzer will highlight rust source in doc comments as well as intra
|
||||
/// doc links.
|
||||
semanticHighlighting_doc_comment_inject_enable: bool = true,
|
||||
/// Whether the server is allowed to emit non-standard tokens and modifiers.
|
||||
semanticHighlighting_nonStandardTokens: bool = true,
|
||||
/// Use semantic tokens for operators.
|
||||
///
|
||||
/// When disabled, rust-analyzer will emit semantic tokens only for operator tokens when
|
||||
/// they are tagged with modifiers.
|
||||
semanticHighlighting_operator_enable: bool = true,
|
||||
/// Use specialized semantic tokens for operators.
|
||||
///
|
||||
/// When enabled, rust-analyzer will emit special token types for operator tokens instead
|
||||
/// of the generic `operator` token type.
|
||||
semanticHighlighting_operator_specialization_enable: bool = false,
|
||||
/// Use semantic tokens for punctuation.
|
||||
///
|
||||
/// When disabled, rust-analyzer will emit semantic tokens only for punctuation tokens when
|
||||
/// they are tagged with modifiers or have a special role.
|
||||
semanticHighlighting_punctuation_enable: bool = false,
|
||||
/// When enabled, rust-analyzer will emit a punctuation semantic token for the `!` of macro
|
||||
/// calls.
|
||||
semanticHighlighting_punctuation_separate_macro_bang: bool = false,
|
||||
/// Use specialized semantic tokens for punctuation.
|
||||
///
|
||||
/// When enabled, rust-analyzer will emit special token types for punctuation tokens instead
|
||||
/// of the generic `punctuation` token type.
|
||||
semanticHighlighting_punctuation_specialization_enable: bool = false,
|
||||
/// Use semantic tokens for strings.
|
||||
///
|
||||
/// In some editors (e.g. vscode) semantic tokens override other highlighting grammars.
|
||||
/// By disabling semantic tokens for strings, other grammars can be used to highlight
|
||||
/// their contents.
|
||||
semanticHighlighting_strings_enable: bool = true,
|
||||
|
||||
/// Show full signature of the callable. Only shows parameters if disabled.
|
||||
signatureInfo_detail: SignatureDetail = SignatureDetail::Full,
|
||||
/// Show documentation.
|
||||
signatureInfo_documentation_enable: bool = true,
|
||||
|
||||
/// Whether to insert closing angle brackets when typing an opening angle bracket of a generic argument list.
|
||||
typing_autoClosingAngleBrackets_enable: bool = false,
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue