File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1815,7 +1815,17 @@ module ts {
1815
1815
return undefined ;
1816
1816
}
1817
1817
1818
- var symbols = apparentType . getApparentProperties ( ) ;
1818
+ var containingClass = getAncestor ( mappedNode , SyntaxKind . ClassDeclaration ) ;
1819
+
1820
+ var symbols : Symbol [ ] = [ ] ;
1821
+ // Filter private properties
1822
+ forEach ( apparentType . getApparentProperties ( ) , symbol => {
1823
+ var declaration = symbol . declarations && symbol . declarations [ 0 ] ;
1824
+ if ( declaration && declaration . flags & NodeFlags . Private && containingClass !== declaration . parent )
1825
+ return ;
1826
+
1827
+ symbols . push ( symbol ) ;
1828
+ } ) ;
1819
1829
isMemberCompletion = true ;
1820
1830
getCompletionEntriesFromSymbols ( symbols , activeCompletionSession ) ;
1821
1831
}
Original file line number Diff line number Diff line change 12
12
goTo . marker ( ) ;
13
13
debug . printCompletionListMembers ( ) ;
14
14
verify . memberListCount ( 2 ) ;
15
- verify . memberListContains ( 'pubMeth' , '(): void' ) ;
15
+ verify . memberListContains ( 'pubMeth' , '() => void' ) ;
16
16
verify . memberListContains ( 'pubProp' , 'number' ) ;
You can’t perform that action at this time.
0 commit comments