Skip to content

Commit 8c23171

Browse files
committed
Code review feedback
1 parent 0fbf73a commit 8c23171

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/services/services.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2846,7 +2846,7 @@ module ts {
28462846
else if (signatureDeclaration.kind !== SyntaxKind.CallSignature && signatureDeclaration.name) {
28472847
displayParts.push.apply(displayParts, symbolToDisplayParts(typeResolver, signatureDeclaration.symbol, sourceFile, /*meaning*/ undefined, SymbolFormatFlags.WriteTypeParametersOrArguments))
28482848
}
2849-
displayParts.push.apply(displayParts, signatureToDisplayParts(typeResolver, signature, sourceFile, TypeFormatFlags.NoTruncation | TypeFormatFlags.WriteTypeArgumentsOfSignature));
2849+
displayParts.push.apply(displayParts, signatureToDisplayParts(typeResolver, signature, sourceFile, TypeFormatFlags.WriteTypeArgumentsOfSignature));
28502850
}
28512851
}
28522852
if (symbolFlags & SymbolFlags.EnumMember) {
@@ -2881,12 +2881,12 @@ module ts {
28812881
// If the type is type parameter, format it specially
28822882
if (type.symbol && type.symbol.flags & SymbolFlags.TypeParameter) {
28832883
var typeParameterParts = mapToDisplayParts(writer => {
2884-
typeResolver.writeTypeParameter(<TypeParameter>type, writer, enclosingDeclaration, TypeFormatFlags.NoTruncation | TypeFormatFlags.WriteUndefinedAndNullAsAny);
2884+
typeResolver.writeTypeParameter(<TypeParameter>type, writer, enclosingDeclaration, TypeFormatFlags.WriteUndefinedAndNullAsAny);
28852885
});
28862886
displayParts.push.apply(displayParts, typeParameterParts);
28872887
}
28882888
else {
2889-
displayParts.push.apply(displayParts, typeToDisplayParts(typeResolver, type, enclosingDeclaration, TypeFormatFlags.NoTruncation));
2889+
displayParts.push.apply(displayParts, typeToDisplayParts(typeResolver, type, enclosingDeclaration));
28902890
}
28912891
}
28922892
else if (symbolFlags & SymbolFlags.Function ||
@@ -2929,7 +2929,7 @@ module ts {
29292929
}
29302930

29312931
function addSignatureDisplayParts(signature: Signature, allSignatures: Signature[], flags?: TypeFormatFlags) {
2932-
displayParts.push.apply(displayParts, signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | TypeFormatFlags.NoTruncation | TypeFormatFlags.WriteTypeArgumentsOfSignature));
2932+
displayParts.push.apply(displayParts, signatureToDisplayParts(typeResolver, signature, enclosingDeclaration, flags | TypeFormatFlags.WriteTypeArgumentsOfSignature));
29332933
if (allSignatures.length > 1) {
29342934
displayParts.push(spacePart());
29352935
displayParts.push(punctuationPart(SyntaxKind.OpenParenToken));
@@ -2944,7 +2944,7 @@ module ts {
29442944

29452945
function writeTypeParametersOfSymbol(symbol: Symbol, enclosingDeclaration: Node) {
29462946
var typeParameterParts = mapToDisplayParts(writer => {
2947-
typeResolver.writeTypeParametersOfSymbol(symbol, writer, enclosingDeclaration, TypeFormatFlags.NoTruncation | TypeFormatFlags.WriteUndefinedAndNullAsAny);
2947+
typeResolver.writeTypeParametersOfSymbol(symbol, writer, enclosingDeclaration, TypeFormatFlags.WriteUndefinedAndNullAsAny);
29482948
});
29492949
displayParts.push.apply(displayParts, typeParameterParts);
29502950
}
@@ -2978,7 +2978,7 @@ module ts {
29782978
kind: ScriptElementKind.unknown,
29792979
kindModifiers: ScriptElementKindModifier.none,
29802980
textSpan: new TypeScript.TextSpan(node.getStart(), node.getWidth()),
2981-
displayParts: typeToDisplayParts(typeInfoResolver, type, getContainerNode(node), TypeFormatFlags.NoTruncation),
2981+
displayParts: typeToDisplayParts(typeInfoResolver, type, getContainerNode(node)),
29822982
documentation: type.symbol ? type.symbol.getDocumentationComment() : undefined
29832983
};
29842984
}

tests/cases/fourslash/genericTypeWithMultipleBases1MultiFile.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
goTo.marker();
2121
verify.completionListContains('watch', '(property) iBaseScope.watch: () => void');
2222
verify.completionListContains('moveUp', '(property) iMover.moveUp: () => void');
23-
debugger;
2423
verify.completionListContains('family', '(property) iScope<number>.family: number');

0 commit comments

Comments
 (0)