File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
tests/cases/fourslash/server Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -1590,7 +1590,9 @@ namespace ts.Completions {
15901590 if ( m . kind !== SyntaxKind . PropertyAssignment &&
15911591 m . kind !== SyntaxKind . ShorthandPropertyAssignment &&
15921592 m . kind !== SyntaxKind . BindingElement &&
1593- m . kind !== SyntaxKind . MethodDeclaration ) {
1593+ m . kind !== SyntaxKind . MethodDeclaration &&
1594+ m . kind !== SyntaxKind . GetAccessor &&
1595+ m . kind !== SyntaxKind . SetAccessor ) {
15941596 continue ;
15951597 }
15961598
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