Address Issues from Github

- Updated naming of config
- Define struct in ra_ide and use remote derive in rust-analyzer/config
- Make inlayConfig type more flexible to support more future types
- Remove constructor only used in tests
This commit is contained in:
Steffen Lyngbaek
2020-03-10 11:21:56 -07:00
parent e98aff109a
commit cfb48df149
10 changed files with 77 additions and 45 deletions

View File

@@ -997,7 +997,7 @@ pub fn handle_inlay_hints(
let analysis = world.analysis();
let line_index = analysis.file_line_index(file_id)?;
Ok(analysis
.inlay_hints(file_id, world.options.max_inlay_hint_length)?
.inlay_hints(file_id, &world.options.inlay_hint_opts)?
.into_iter()
.map(|api_type| InlayHint {
label: api_type.label.to_string(),