From fb9890a2eba77733b4a003008026a0d2c8efdc8c Mon Sep 17 00:00:00 2001 From: Zhang <82796406+Ronny-zzl@users.noreply.github.com> Date: Fri, 13 Dec 2024 22:34:53 +0900 Subject: [PATCH] Add the ids of jsx and tsx (#6531) --- src/issues/userHoverProvider.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/issues/userHoverProvider.ts b/src/issues/userHoverProvider.ts index daf390ee4f..7780e6e962 100644 --- a/src/issues/userHoverProvider.ts +++ b/src/issues/userHoverProvider.ts @@ -32,7 +32,13 @@ export class UserHoverProvider implements vscode.HoverProvider { if (match) { const username = match[1]; // JS and TS doc checks - if (((document.languageId === 'javascript') || (document.languageId === 'typescript')) + const JS_TS_LANGUAGE_IDS = [ + 'javascript', + 'javascriptreact', + 'typescript', + 'typescriptreact', + ]; + if (JS_TS_LANGUAGE_IDS.includes(document.languageId) && JSDOC_NON_USERS.indexOf(username) >= 0) { return; }