Microsoft/TypeScript
GitHub で見るSuggestion: Change `Diagnostic.file` to be `SourceFileLike` instead of `SourceFile`.
Open
#18,013 opened on 2017年8月24日
Domain: APIHelp WantedSuggestion
Repository metrics
- Stars
- (48,455 stars)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 9 merged PRs)
説明
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.