about summary refs log tree commit diff
path: root/docs/user/generated_config.adoc
AgeCommit message (Collapse)AuthorLines
2022-07-04Improve documentation for buildScripts.overrideCommand / ↵Florian Diebold-8/+11
checkOnSave.overrideCommand
2022-05-28fix: add an option to show inlay hint for return type of closures without blockharpsword-2/+2
2022-05-25internal: Make autoclosing angle brackets configurable, disabled by defaultLukas Wirth-0/+5
2022-05-20feat: hide type inlay hints for initializations of closuresandylizi-0/+6
2022-05-20remove duplicate 'to' in `cachePriming.numThreads` option descriptionEquinox-1/+1
2022-05-16Show inlay hints after a `}` to indicate the closed itemJonas Schievink-0/+11
2022-05-16Auto merge of #12253 - Veykril:bm, r=Veykrilbors-0/+5
feat: Add binding mode inlay hints ![image](https://user-images.githubusercontent.com/3757771/168427387-2f299438-a0cc-496b-a9a5-d689ef6a2b55.png)
2022-05-14Update package.jsonLukas Wirth-0/+5
2022-05-14internal: Make VSCode config more GUI edit friendlyLukas Wirth-1/+2
2022-05-13fix: Fix incorrect hover actions config keysLukas Wirth-5/+5
2022-05-12Auto merge of #12226 - Veykril:reborrow-inlay-hints, r=Veykrilbors-1/+1
feat: Allow reborrow inlay hints to be restricted to mutable reborrows only
2022-05-12feat: Allow reborrow inlay hints to be restricted to mutable reborrows onlyLukas Wirth-1/+1
2022-05-12internal: Rename primeCaches config keysLukas Wirth-10/+10
2022-05-10fix typo in `inlayHints.renderColons` option descriptionElliot Roberts-1/+1
2022-05-10Auto merge of #12010 - Veykril:r-a-config, r=Veykrilbors-195/+210
Config revamp Fixes https://github.com/rust-lang/rust-analyzer/issues/11790 Fixes https://github.com/rust-lang/rust-analyzer/issues/12115 This PR changes a lot of config names, and a few ones are being merged or split apart. The reason for this is that our configuration names currently are rather inconsistent and some where poorly chosen in regards to extensability. This PR plans to fix that. We still allow the old config names by patching them to the new ones before deserializing to keep backwards compatability with other clients (the VSCode client will auto update the config) but ideally we will get rid of that layer in the future. Here is a list of the changes: These are simple renames `old_name | alias1 | alias2 ... -> new_name` (the vscode client will fix these up automagically): ``` assist_allowMergingIntoGlobImports -> imports_merge_glob assist_exprFillDefault -> assist_expressionFillDefault assist_importEnforceGranularity -> imports_granularity_enforce assist_importGranularity | assist_importMergeBehavior | assist_importMergeBehaviour -> imports_granularity_group assist_importGroup -> imports_group_enable assist_importPrefix -> imports_prefix cache_warmup -> primeCaches_enable cargo_loadOutDirsFromCheck -> cargo_buildScripts_enable cargo_runBuildScripts | cargo_runBuildScriptsCommand -> cargo_runBuildScripts_overrideCommand cargo_useRustcWrapperForBuildScripts -> cargo_runBuildScripts_useRustcWrapper completion_snippets -> completion_snippets_custom diagnostics_enableExperimental -> diagnostics_experimental_enable experimental_procAttrMacros -> procMacro_attributes_enable highlighting_strings -> semanticHighlighting_strings_enable highlightRelated_breakPoints -> semanticHighlighting_breakPoints_enable highlightRelated_exitPoints -> semanticHighlighting_exitPoints_enable highlightRelated_yieldPoints -> semanticHighlighting_yieldPoints_enable highlightRelated_references -> semanticHighlighting_references_enable hover_documentation -> hover_documentation_enable hover_linksInHover | hoverActions_linksInHover -> hover_links_enable hoverActions_debug -> hoverActions_debug_enable hoverActions_enable -> hoverActions_enable_enable hoverActions_gotoTypeDef -> hoverActions_gotoTypeDef_enable hoverActions_implementations -> hoverActions_implementations_enable hoverActions_references -> hoverActions_references_enable hoverActions_run -> hoverActions_run_enable inlayHints_chainingHints -> inlayHints_chainingHints_enable inlayHints_closureReturnTypeHints -> inlayHints_closureReturnTypeHints_enable inlayHints_hideNamedConstructorHints -> inlayHints_typeHints_hideNamedConstructorHints inlayHints_parameterHints -> inlayHints_parameterHints_enable inlayHints_reborrowHints -> inlayHints_reborrowHints_enable inlayHints_typeHints -> inlayHints_typeHints_enable lruCapacity -> lru_capacity runnables_cargoExtraArgs -> runnables_extraArgs runnables_overrideCargo -> runnables_command rustcSource -> rustc_source rustfmt_enableRangeFormatting -> rustfmt_rangeFormatting_enable ``` These are configs that have been merged or split apart, which have to be manually updated by the user: ``` callInfo_full -> signatureInfo_detail, signatureInfo_documentation_enable cargo_allFeatures, cargo_features -> cargo_features checkOnSave_allFeatures, checkOnSave_features -> checkOnSave_features completion_addCallArgumentSnippets completion_addCallParenthesis -> completion_callable_snippets ```
2022-05-01Fix up config docsLukas Wirth-16/+37
2022-05-01Final fixupsLukas Wirth-4/+4
2022-05-01Adjust signature info and enum variant lensesLukas Wirth-5/+5
2022-05-01Update docs and configLukas Wirth-191/+185
2022-04-27Reload project on .cargo/config[.toml] changesunknown-1/+1
Fixes #11024
2022-04-13feat: allow customizing the command for running build scriptsDeadbeef-0/+7
2022-04-03Merge #10802bors[bot]-0/+7
10802: Allow clients to configure the global workspace search limit r=Veykril a=knutwalker Playing around with [helix](https://helix-editor.com) I realized that the global worksapce symbol search works different compared to vs-code. Helix requires all possible symbols in one query and does no subsequent refinement searched. This PR adds a configuration option to override the default search limit with the default being the currently hardocded value. Helix users can increment this limit for their instance with a config like ```toml [[language]] name = "rust" language-server = { command = "rust-analyzer" } [language.config] workspace = { symbol = { search = { limit = 65536 }}} ``` Other editors are not affected by this change. Co-authored-by: Paul Horn <dev@knutwalker.engineer>
2022-03-24Disable experimental diagnostics by defaultJonas Schievink-1/+1
2022-03-22fix: Fix lifetime elision hint configuration keyLukas Wirth-1/+1
2022-03-20feat: Visualize compiler inserted reborrows via inlay hintsLukas Wirth-0/+5
2022-03-19Change skip trivial behaviourLukas Wirth-2/+2
2022-03-19Add option to skip trivial casesLukas Wirth-0/+10
2022-03-16feat: Add return type hints for closures with block bodiesLukas Wirth-5/+10
2022-03-11fix: Allow configuration of colons in inlay-hintsLukas Wirth-0/+5
2022-02-25feat: Make private editable completions configurable, disable by defaultLukas Wirth-0/+5
2022-01-15make it a configJake Heinz-0/+5
2022-01-10Fix documentation of snippetWang Ruochen-4/+9
2022-01-07Merge #11145bors[bot]-0/+5
11145: feat: add config to use reasonable default expression instead of todo! when filling missing fields r=Veykril a=bnjjj Use `Default::default()` in struct fields when we ask to fill it instead of putting `todo!()` for every fields before: ```rust pub enum Other { One, Two, } pub struct Test { text: String, num: usize, other: Other, } fn t_test() { let test = Test {<|>}; } ``` after: ```rust pub enum Other { One, Two, } pub struct Test { text: String, num: usize, other: Other, } fn t_test() { let test = Test { text: String::new(), num: 0, other: todo!(), }; } ``` Co-authored-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com> Co-authored-by: Coenen Benjamin <benjamin.coenen@hotmail.com>
2022-01-07feat(diagnostics): use default expression instead of todo! when missing fieldsBenjamin Coenen-1/+1
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2022-01-06Adjust config nameLukas Wirth-3/+4
2022-01-06Regenrate docs and package.jsonLukas Wirth-0/+6
2021-12-31feat(diagnostics): add new config to fill default expressionBenjamin Coenen-0/+5
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
2021-12-17Add a few default snippets for VSCodeLukas Wirth-1/+41
2021-11-19Add toggle to disable cache primingLaurențiu Nicola-0/+5
2021-11-18Allow clients to configure the global workspace search limitPaul Horn-0/+7
2021-11-13flip the defaultJake Heinz-1/+1
2021-11-13inlay hints: add the option to always show constructor inlay hintsJake Heinz-0/+5
2021-10-14Document rustc source auto-discoveryLaurențiu Nicola-2/+3
2021-10-05Merge #10447bors[bot]-2/+8
10447: Add enum variant references CodeLens. r=Veykril a=ericsampson Co-authored-by: Eric Sampson <esampson@eaze.com>
2021-10-05Render the expansion of snippets as their docsLukas Wirth-5/+0
2021-10-04Regen generated_config.adocLukas Wirth-0/+10
2021-10-04need to update some generated files.Eric Sampson-2/+8
2021-09-27Enable attribute proc macros by defaultLaurențiu Nicola-1/+1
2021-09-24Add missing filesCarlos Menezes-1/+1
2021-08-22feat: join lines merges assignmentsunexge-0/+5