usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
588 stars 32 forks source link

When writing native js, the spell check works, but the car error does not work #182

Closed weiqiyue closed 1 year ago

weiqiyue commented 1 year ago

image like this.

usernamehw commented 1 year ago

I don't understand what you're asking.

weiqiyue commented 1 year ago

I don't understand what you're asking. Error checking doesn't work. It's an undefined variable, and logically speaking, an error should be reported, right?

usernamehw commented 1 year ago

It's very likely not a problem with extension. If it had a squiggly underline (error) and Error Lens didn't highlight it - that would be a problem with extension.

JavaScript probably doesn't report errors like this. It would be caught if it used TypeScript error checking:

// @ts-check
shuju++;
console.log(shuju);