Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions.

This commit is contained in:
Dan Corder
2015-12-07 19:46:37 +00:00
parent 2ef436f082
commit ff4147af01
2 changed files with 28 additions and 1 deletions

View File

@@ -3751,7 +3751,8 @@ namespace ts {
// Ignore omitted expressions for missing members
if (m.kind !== SyntaxKind.PropertyAssignment &&
m.kind !== SyntaxKind.ShorthandPropertyAssignment &&
m.kind !== SyntaxKind.BindingElement) {
m.kind !== SyntaxKind.BindingElement &&
m.kind !== SyntaxKind.MethodDeclaration) {
continue;
}

View File

@@ -0,0 +1,26 @@
/// <reference path="fourslash.ts" />
////interface I1 {
//// a(): void;
//// b(): void;
////}
////
////var imp1: I1 {
//// a() {},
//// /*0*/
////}
////
////interface I2 {
//// a(): void;
//// b(): void;
////}
////
////var imp2: I2 {
//// a: () => {},
//// /*1*/
////}
goTo.marker("0");
verify.not.completionListContains("a");
goTo.marker("1");
verify.not.completionListContains("a");