mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Report compiler options errors as well as part of configFileDiag event
Fixes #25741
This commit is contained in:
@@ -1674,10 +1674,12 @@ namespace ts.server {
|
||||
if (!this.eventHandler || this.suppressDiagnosticEvents) {
|
||||
return;
|
||||
}
|
||||
const diagnostics = project.getLanguageService().getCompilerOptionsDiagnostics();
|
||||
diagnostics.push(...project.getAllProjectErrors());
|
||||
|
||||
this.eventHandler(<ConfigFileDiagEvent>{
|
||||
eventName: ConfigFileDiagEvent,
|
||||
data: { configFileName: project.getConfigFilePath(), diagnostics: project.getAllProjectErrors(), triggerFile }
|
||||
data: { configFileName: project.getConfigFilePath(), diagnostics, triggerFile }
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user