mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
Merge pull request #5979 from DanCorder/5058
Fix for #5058 - Exclude implemented interface functions from autocompletion suggestions.
This commit is contained in:
commit
b4f4dadeb6
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
////interface I1 {
|
||||
//// a(): void;
|
||||
//// b(): void;
|
||||
////}
|
||||
////
|
||||
////var imp1: I1 {
|
||||
//// a() {},
|
||||
//// /*0*/
|
||||
////}
|
||||
////
|
||||
////var imp2: I1 {
|
||||
//// a: () => {},
|
||||
//// /*1*/
|
||||
////}
|
||||
|
||||
goTo.marker("0");
|
||||
verify.not.completionListContains("a");
|
||||
goTo.marker("1");
|
||||
verify.not.completionListContains("a");
|
||||
Loading…
x
Reference in New Issue
Block a user