Skip to content

Commit ecc029f

Browse files
committed
more temp
1 parent 132b746 commit ecc029f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/services/codefixes/changeExtendsToImplementsFix.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

src/services/codefixes/interfaceFixes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)