diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 43777f6c453..ae6bfb5ac13 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -6065,7 +6065,8 @@ namespace ts { || kind === SyntaxKind.TypeAliasDeclaration || kind === SyntaxKind.TypeParameter || kind === SyntaxKind.VariableDeclaration - || kind === SyntaxKind.JSDocTypedefTag; + || kind === SyntaxKind.JSDocTypedefTag + || kind === SyntaxKind.JSDocPropertyTag; } function isDeclarationStatementKind(kind: SyntaxKind) { diff --git a/tests/cases/fourslash/findAllRefsTypedef.ts b/tests/cases/fourslash/findAllRefsTypedef.ts new file mode 100644 index 00000000000..c7e2527405d --- /dev/null +++ b/tests/cases/fourslash/findAllRefsTypedef.ts @@ -0,0 +1,15 @@ +/// + +// @allowJs: true + +// @Filename: /a.js +/////** +//// * @typedef I {Object} +//// * @prop [|p|] {number} +//// */ +//// +/////** @type {I} */ +////let x; +////x.[|p|]; + +verify.rangesReferenceEachOther();