File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ use crate::{
27
27
line_index:: OffsetEncoding , lsp_ext:: supports_utf8,
28
28
} ;
29
29
30
+ // Defines the server-side configuration of the rust-analyzer. We generate
31
+ // *parts* of VS Code's `package.json` config from this.
32
+ //
33
+ // However, editor specific config, which the server doesn't know about, should
34
+ // be specified directly in `package.json`.
30
35
config_data ! {
31
36
struct ConfigData {
32
37
/// The strategy to use when inserting new imports or merging imports.
@@ -145,8 +150,6 @@ config_data! {
145
150
inlayHints_parameterHints: bool = "true" ,
146
151
/// Whether to show inlay type hints for variables.
147
152
inlayHints_typeHints: bool = "true" ,
148
- /// Whether inlay hints font size should be smaller than editor's font size.
149
- inlayHints_smallerHints: bool = "true" ,
150
153
151
154
/// Whether to show `Debug` lens. Only applies when
152
155
/// `#rust-analyzer.lens.enable#` is set.
Original file line number Diff line number Diff line change 283
283
"default" : true ,
284
284
"description" : " Whether to show inlay hints."
285
285
},
286
+ "rust-analyzer.inlayHints.smallerHints" : {
287
+ "type" : " boolean" ,
288
+ "default" : true ,
289
+ "description" : " Whether inlay hints font size should be smaller than editor's font size."
290
+ },
286
291
"rust-analyzer.updates.channel" : {
287
292
"type" : " string" ,
288
293
"enum" : [
353
358
" Use [MS C++ tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools)"
354
359
]
355
360
},
356
- "rust-analyzer.debug.sourceFileMap" : {
361
+ "rust-analyzer.debug.sourceFileMap" : {
357
362
"type" : [" object" , " string" ],
358
363
"const" : " auto" ,
359
364
"description" : " Optional source file mappings passed to the debug engine." ,
654
659
"default" : true ,
655
660
"type" : " boolean"
656
661
},
657
- "rust-analyzer.inlayHints.smallerHints" : {
658
- "markdownDescription" : " Whether inlay hints font size should be smaller than editor's font size." ,
659
- "default" : true ,
660
- "type" : " boolean"
661
- },
662
662
"rust-analyzer.lens.debug" : {
663
663
"markdownDescription" : " Whether to show `Debug` lens. Only applies when\n `#rust-analyzer.lens.enable#` is set." ,
664
664
"default" : true ,
You can’t perform that action at this time.
0 commit comments