Skip to content

Commit 81dabb4

Browse files
Ensure that doc comments don't appear between dotted names.
Also updated TODO
1 parent 08e2b0a commit 81dabb4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/services/services.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7025,9 +7025,10 @@ namespace ts {
70257025
}
70267026

70277027
// TODO: add support for:
7028-
// - methods
7029-
// - constructors
7030-
// - class decls
7028+
// - enums/enum members
7029+
// - interfaces
7030+
// - property declarations
7031+
// - potentially property assignments
70317032
let commentOwner: Node;
70327033
findOwner: for (commentOwner = tokenAtPos; commentOwner; commentOwner = commentOwner.parent) {
70337034
switch (commentOwner.kind) {
@@ -7041,7 +7042,7 @@ namespace ts {
70417042
return undefined;
70427043
case SyntaxKind.ModuleDeclaration:
70437044
// We don't want to give back a JSDoc for the 'b' in 'module a.b'.
7044-
if (false && commentOwner.parent.kind === SyntaxKind.ModuleDeclaration) {
7045+
if (commentOwner.parent.kind === SyntaxKind.ModuleDeclaration) {
70457046
return undefined;
70467047
}
70477048
break findOwner;

0 commit comments

Comments
 (0)