Skip to content

Commit

Permalink
Added NoTruncation flag to completions (#58719)
Browse files Browse the repository at this point in the history
Co-authored-by: Armando Aguirre Sepulveda <[email protected]>
  • Loading branch information
armanio123 and Armando Aguirre Sepulveda authored May 31, 2024
1 parent d4976c0 commit ef514af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/codefixes/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export function addNewNodeForMemberSymbol(
switch (kind) {
case SyntaxKind.PropertySignature:
case SyntaxKind.PropertyDeclaration:
const flags = quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : undefined;
let flags = NodeBuilderFlags.NoTruncation;
flags |= quotePreference === QuotePreference.Single ? NodeBuilderFlags.UseSingleQuotesForStringLiteralType : 0;
let typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context));
if (importAdder) {
const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
Expand Down

0 comments on commit ef514af

Please sign in to comment.