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
{{ message }}
Repository navigation
With @angular/languageservice, non-Angular HTML file report lots of errors as they're parsed as TypeScript #31423
Search Terms: Language Service HTML parsing errors
Context: I'm starting the typescript-language-server (delegating to tsserver) adding the @angular/language-service as plugin to typescript. When opening an HTML that does not have any Angular-specific content Expected behavior: the typescript-language-server ignores the file, not specific errors are reported Actual behavior: a lot of errors are reported for such non Angular HTML, the errors are TypeScript parser errors. It seems like tsserver decides to parse this .html file as a .ts one.
See angular/vscode-ng-language-service#317 (comment) . I don't really understand everything here as I'm more on the plain consumer side and don't know any detail about how Typescript-language-server works; but with the linked comment and yours, it seems to me the issue is fully on @angular/language-service, isn't it?
If it is so, feel free to close this ticket.
Activity
RyanCavanaugh commentedon May 17, 2019
TypeScript can't prevent editors or external components from asking it to parse HTML files as if they were TS. Whoever is doing this needs to stop.
mickaelistria commentedon May 17, 2019
See angular/vscode-ng-language-service#317 (comment) . I don't really understand everything here as I'm more on the plain consumer side and don't know any detail about how Typescript-language-server works; but with the linked comment and yours, it seems to me the issue is fully on @angular/language-service, isn't it?
If it is so, feel free to close this ticket.
typescript-bot commentedon May 20, 2019
This issue has been marked as 'External' and has seen no recent activity. It has been automatically closed for house-keeping purposes.