diff --git a/src/ide.rs b/src/ide.rs index 19c9484604..11fe5617f3 100644 --- a/src/ide.rs +++ b/src/ide.rs @@ -110,7 +110,7 @@ pub fn check(engine_state: &mut EngineState, file_path: &String) { "{}", json!({ "type": "hint", - "typename": var.ty, + "typename": var.ty.to_string(), "position": { "start": flat.0.start - offset, "end": flat.0.end - offset diff --git a/src/tests/test_ide.rs b/src/tests/test_ide.rs index d7404c0dc5..49c2a648bb 100644 --- a/src/tests/test_ide.rs +++ b/src/tests/test_ide.rs @@ -5,6 +5,6 @@ fn parser_recovers() -> TestResult { test_ide_contains( "3 + \"bob\"\nlet x = \"fred\"\n", &["--ide-check"], - "\"typename\":\"String\"", + "\"typename\":\"string\"", ) }