Skip to content

Commit

Permalink
Add the ids of jsx and tsx (#6531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny-zzl authored Dec 13, 2024
1 parent 188b1c2 commit fb9890a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/issues/userHoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit fb9890a

Please sign in to comment.