You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It uses the original diagnostics object from the parent LS (doesn't copy it).
The parent LS caches the object so every time when I call getSemanticDiagnostics (and the file wasn't changed so the parent LS can use the cache) it adds more and more tslint errors.
There is no way to reproduce the error in VSCode because it doesn't call getSemanticDiagnosticsSync.
Hi. There is a problem with the code:
https://github.com/angelozerr/tslint-language-service/blob/master/src/index.ts#L304
It uses the original diagnostics object from the parent LS (doesn't copy it).
The parent LS caches the object so every time when I call getSemanticDiagnostics (and the file wasn't changed so the parent LS can use the cache) it adds more and more tslint errors.
There is no way to reproduce the error in VSCode because it doesn't call getSemanticDiagnosticsSync.
we can fix the problem by adding this code:
I guess you can also use a cache as the parent LS does it.
The text was updated successfully, but these errors were encountered: