checking also that the file is of type typescriptreact

This commit is contained in:
Aiday Marlen Kyzy
2023-08-22 09:33:41 +02:00
parent 32c476a056
commit df5bf004f4

View File

@@ -163,7 +163,7 @@ class DiagnosticsTelemetryManager extends Disposable {
) {
super();
this._register(vscode.workspace.onDidChangeTextDocument(e => {
if (e.document.languageId === 'typescript') {
if (e.document.languageId === 'typescript' || e.document.languageId === 'typescriptreact') {
this._updateAllDiagnosticCodesAfterTimeout();
}
}));