diff --git a/CHANGELOG.md b/CHANGELOG.md index 235239f21..376a81c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ #### :bug: Bug Fix +- Fix issue where debug output would end up in the JSON file produced by Reanalyze https://github.com/rescript-lang/rescript-vscode/pull/575 - Fix issue where autocomplete would not perform type instantiation https://github.com/rescript-lang/rescript-vscode/pull/561 - Fix issue where hovering over a field in record construction would show the type without instantiating its type arguments https://github.com/rescript-lang/rescript-vscode/pull/560 - Fix Incorrect semantic highlighting of `external` declarations https://github.com/rescript-lang/rescript-vscode/pull/517 diff --git a/analysis/reanalyze/src/Paths.ml b/analysis/reanalyze/src/Paths.ml index 5dd5aad27..b0d64694b 100644 --- a/analysis/reanalyze/src/Paths.ml +++ b/analysis/reanalyze/src/Paths.ml @@ -181,7 +181,8 @@ let readSourceDirs ~configSources = else readDirs json | None -> () else ( - Log_.item "Warning: can't find source dirs: %s\n" sourceDirs; - Log_.item "Types for cross-references will not be found by genType.\n"; + if !Cli.debug then ( + Log_.item "Warning: can't find source dirs: %s\n" sourceDirs; + Log_.item "Types for cross-references will not be found.\n"); dirs := readDirsFromConfig ~configSources); !dirs