File tree 2 files changed +19
-1
lines changed
tests/cases/fourslash/server 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -1590,7 +1590,8 @@ namespace ts.Completions {
1590
1590
if ( m . kind !== SyntaxKind . PropertyAssignment &&
1591
1591
m . kind !== SyntaxKind . ShorthandPropertyAssignment &&
1592
1592
m . kind !== SyntaxKind . BindingElement &&
1593
- m . kind !== SyntaxKind . MethodDeclaration ) {
1593
+ m . kind !== SyntaxKind . MethodDeclaration &&
1594
+ m . kind !== SyntaxKind . GetAccessor ) {
1594
1595
continue ;
1595
1596
}
1596
1597
Original file line number Diff line number Diff line change
1
+ /// <reference path="../fourslash.ts"/>
2
+
3
+ // issue: https://github.com/Microsoft/TypeScript/issues/10108
4
+
5
+ //// interface Foo {
6
+ //// one: any;
7
+ //// two: any;
8
+ //// }
9
+ ////
10
+ //// let x: Foo = {
11
+ //// get one() { return "" },
12
+ //// /**/
13
+ //// }
14
+
15
+ goTo . marker ( "" ) ;
16
+ verify . completionListContains ( "two" ) ;
17
+ verify . not . completionListContains ( "one" ) ;
You can’t perform that action at this time.
0 commit comments