aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-13 21:00:39 +0100
committerLukas Wirth <[email protected]>2021-06-13 21:00:39 +0100
commitb58c1c9eb2b19479018add616592b73e3b933b77 (patch)
treecf057e31d16253cdf6b88ecae8bb1201e542cbd3 /crates
parent863e23f00f90c0ddd408e906618586a98273a14c (diff)
Give ImportPrefix variants better config names
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/config.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 3b20d741a..91a9b55a8 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -801,7 +801,9 @@ enum ImportGranularityDef {
801#[serde(rename_all = "snake_case")] 801#[serde(rename_all = "snake_case")]
802enum ImportPrefixDef { 802enum ImportPrefixDef {
803 Plain, 803 Plain,
804 #[serde(alias = "self")]
804 BySelf, 805 BySelf,
806 #[serde(alias = "crate")]
805 ByCrate, 807 ByCrate,
806} 808}
807 809
@@ -986,13 +988,13 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json
986 "type": "string", 988 "type": "string",
987 "enum": [ 989 "enum": [
988 "plain", 990 "plain",
989 "by_self", 991 "self",
990 "by_crate" 992 "crate"
991 ], 993 ],
992 "enumDescriptions": [ 994 "enumDescriptions": [
993 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.", 995 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item.",
994 "Prefix all import paths with `self` if they don't begin with `self`, `super`, `crate` or a crate name.", 996 "Insert import paths relative to the current module, using up to one `super` prefix if the parent module contains the requested item. Prefixes `self` in front of the path if it starts with a module.",
995 "Force import paths to be absolute by always starting them with `crate` or the crate name they refer to." 997 "Force import paths to be absolute by always starting them with `crate` or the extern crate name they come from."
996 ], 998 ],
997 }, 999 },
998 "Vec<ManifestOrProjectJson>" => set! { 1000 "Vec<ManifestOrProjectJson>" => set! {