diff options
| author | Lukas Tobias Wirth <lukastw97@gmail.com> | 2021-05-18 20:21:47 +0200 |
|---|---|---|
| committer | Lukas Tobias Wirth <lukastw97@gmail.com> | 2021-05-19 15:57:10 +0200 |
| commit | b4fe479236f592fcbfa1422dda54253b77d8b0e1 (patch) | |
| tree | 0ce721228484783514b8948a0a64e3e4ca38ea95 /editors/code/package.json | |
| parent | 5fd9f6c7b9944638e4781e3d9384638942f84456 (diff) | |
| download | rust-b4fe479236f592fcbfa1422dda54253b77d8b0e1.tar.gz rust-b4fe479236f592fcbfa1422dda54253b77d8b0e1.zip | |
Replace ImportGranularity::Guess with guessing boolean flag
Diffstat (limited to 'editors/code/package.json')
| -rw-r--r-- | editors/code/package.json | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editors/code/package.json b/editors/code/package.json index 06ce8698705..48d12b35afc 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -387,23 +387,26 @@ "$generated-start": false, "rust-analyzer.assist.importGranularity": { "markdownDescription": "How imports should be grouped into use statements.", - "default": "guess", + "default": "crate", "type": "string", "enum": [ - "guess", "preserve", "crate", "module", "item" ], "enumDescriptions": [ - "Try to guess the granularity of imports on a per module basis by observing the existing imports.", "Do not change the granularity of any imports and preserve the original structure written by the developer.", "Merge imports from the same crate into a single use statement. Conversely, imports from different crates are split into separate statements.", "Merge imports from the same module into a single use statement. Conversely, imports from different modules are split into separate statements.", "Flatten imports so that each has its own use statement." ] }, + "rust-analyzer.assist.importEnforceGranularity": { + "markdownDescription": "Whether to enforce the import granularity setting for all files. If set to false rust-analyzer will try to keep import styles consistent per file.", + "default": false, + "type": "boolean" + }, "rust-analyzer.assist.importPrefix": { "markdownDescription": "The path structure for newly inserted paths to use.", "default": "plain", |
