Microsoft/TypeScript
Voir sur GitHubSuggestion: Change `Diagnostic.file` to be `SourceFileLike` instead of `SourceFile`.
Open
#18 013 ouverte le 24 août 2017
Domain: APIHelp WantedSuggestion
Métriques du dépôt
- Stars
- (48 455 stars)
- Métriques de merge PR
- (Merge moyen 6j 17h) (9 PRs mergées en 30 j)
Description
Diagnostic.file is of type SourceFile which forces plugins to cast a non-SourceFile to a SourceFile to report diagnostic messages and guess which parts of SourceFile are not used by tsserver.
Consider changing file to be something like SourceFileLIke or SourceMapSource that specifies the exact requirements that must be supplied by plugins for this field.