File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,13 @@ namespace ts.codefix {
1111 if ( token . kind === SyntaxKind . Identifier && token . parent . parent . kind === SyntaxKind . HeritageClause ) {
1212 const children = ( < HeritageClause > token . parent . parent ) . getChildren ( ) ;
1313
14- var hasImplements : boolean = ts . forEach ( children , child => child . kind === SyntaxKind . ImplementsKeyword ) ;
15-
16- var childInterfaces = children . filter ( child => child . kind === SyntaxKind . InterfaceDeclaration )
14+ // If there is already an implements keyword, we currently have incorrect behavior.
15+ // For now, we suppress the quickfix altogether.
16+ /*
17+ if(ts.forEach(children, child => child.kind === SyntaxKind.ImplementsKeyword)) {
18+ return undefined;
19+ }
20+ */
1721
1822 ts . forEach ( children , child => {
1923 if ( child . kind === SyntaxKind . ExtendsKeyword ) {
Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ namespace ts.codefix {
136136 return getNamedClassMemberDeclarations ( classDeclaration ) . filter ( member => getModifierFlags ( member ) & ModifierFlags . Abstract ) ;
137137 }
138138
139+ /*
139140 function getMembersAndStartPosFromReference(variableDeclaration: VariableDeclaration): { startPos: number, members: string[] } {
140141 const children = variableDeclaration.getChildren();
141142 const variableMembers: string[] = [];
@@ -157,6 +158,7 @@ namespace ts.codefix {
157158
158159 return { startPos: startPos, members: variableMembers };
159160 }
161+ */
160162
161163 function getDefaultValue ( kind : SyntaxKind ) : string {
162164 switch ( kind ) {
You can’t perform that action at this time.
0 commit comments