File tree 2 files changed +23
-1
lines changed
tests/cases/fourslash/server
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -1590,7 +1590,9 @@ 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 &&
1595
+ m . kind !== SyntaxKind . SetAccessor ) {
1594
1596
continue ;
1595
1597
}
1596
1598
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
+ //// three: any;
9
+ //// }
10
+ ////
11
+ //// let x: Foo = {
12
+ //// get one() { return "" },
13
+ //// set two(t) {},
14
+ //// /**/
15
+ //// }
16
+
17
+ goTo . marker ( "" ) ;
18
+ verify . completionListContains ( "three" ) ;
19
+ verify . not . completionListContains ( "one" ) ;
20
+ verify . not . completionListContains ( "two" ) ;
You can’t perform that action at this time.
0 commit comments