diff options
| author | bors <bors@rust-lang.org> | 2024-07-07 08:32:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-07 08:32:46 +0000 |
| commit | 9a04253016f03e021c94e94e68aea84f94af0919 (patch) | |
| tree | 78055626c79ed05a7eaac1d860e1abf0625a2fa9 /src/tools/rust-analyzer/editors/code | |
| parent | 3c5595a06d9b82d9d44720c506fa85bad8275f99 (diff) | |
| parent | f398be1639e2d5b611d58625b78f0209adbd77f1 (diff) | |
Auto merge of #17523 - wada314:master, r=Veykril
Add an option to use "::" for the external crate prefix. Fixes #11823 . Hi I'm very new to rust-analyzer and not sure how the review process are. Can somebody take a look at this PR? thanks!
Diffstat (limited to 'src/tools/rust-analyzer/editors/code')
| -rw-r--r-- | src/tools/rust-analyzer/editors/code/package.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json index 8d272246f0f..1fec6f621d1 100644 --- a/src/tools/rust-analyzer/editors/code/package.json +++ b/src/tools/rust-analyzer/editors/code/package.json @@ -1735,6 +1735,16 @@ } }, { + "title": "imports", + "properties": { + "rust-analyzer.imports.prefixExternPrelude": { + "markdownDescription": "Whether to prefix external (including std, core) crate imports with `::`. e.g. \"use ::std::io::Read;\".", + "default": false, + "type": "boolean" + } + } + }, + { "title": "inlayHints", "properties": { "rust-analyzer.inlayHints.bindingModeHints.enable": { |
