We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa2cae5 commit 4c248acCopy full SHA for 4c248ac
lib/index.js
@@ -99,14 +99,16 @@ function hasExtensionError(d){
99
return d.messageText.indexOf('must have extension') > -1;
100
}
101
102
-function extensionErrorFilter(d) {
+function extensionErrorFilter(errors) {
103
var otherErrors = !errors.every(hasExtensionError);
104
- return !(otherErrors && hasExtensionError(d));
+ return function(d) {
105
+ return !(otherErrors && hasExtensionError(d));
106
+ }
107
108
109
function formatErrors(errors) {
110
return errors
- .filter(extensionErrorFilter)
111
+ .filter(extensionErrorFilter(errors))
112
.map(function(diagnostic) {
113
var lineChar;
114
if (diagnostic.file) {
0 commit comments