Skip to content

Commit 261335b

Browse files
authored
Don't filter out module-related type errors (#1090)
* Don't filter out module-related type errors * Add CHANGELOG
1 parent e39488b commit 261335b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#### :bug: Bug fix
1616

17+
- Fix: bug where we incorrectly showed a warning notification about something going wrong with incremental type checking, when in fact the compiler was reporting module-related type errors https://github.com/rescript-lang/rescript-vscode/pull/1090
18+
1719
- Fix: bug where we incorrectly showed a warning notification about something going wrong with incremental type checking, when in fact the compiler was reporting multiple definitions of the same type or module name https://github.com/rescript-lang/rescript-vscode/pull/1086
1820

1921
- Fix: incorrect highlighting of `as` inside labelled arguments like `toast` https://github.com/rescript-lang/rescript-vscode/pull/1085

server/src/incrementalCompilation.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,12 @@ async function compileContents(
683683
) ||
684684
// The `Multiple definition of the <kind> name <name>` type error's
685685
// message includes the filepath with LOC of the duplicate definition
686-
d.message.includes("Multiple definition of the")
686+
d.message.startsWith("Multiple definition of the") ||
687+
// The signature mismatch, with mismatch and ill typed applicative functor
688+
// type errors all include the filepath with LOC
689+
d.message.startsWith("Signature mismatch") ||
690+
d.message.startsWith("In this `with' constraint") ||
691+
d.message.startsWith("This `with' constraint on")
687692
)
688693
) {
689694
hasIgnoredErrorMessages = true;

0 commit comments

Comments
 (0)