Skip to content

Commit aa59a69

Browse files
committed
Correct typo - pass correct argument
All of the other calls in extractSymbol are already correct.
1 parent d8aafee commit aa59a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/refactors/extractSymbol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ namespace ts.refactor.extractSymbol {
730730
let type = checker.getTypeOfSymbolAtLocation(usage.symbol, usage.node);
731731
// Widen the type so we don't emit nonsense annotations like "function fn(x: 3) {"
732732
type = checker.getBaseTypeOfLiteralType(type);
733-
typeNode = checker.typeToTypeNode(type, node, NodeBuilderFlags.NoTruncation);
733+
typeNode = checker.typeToTypeNode(type, scope, NodeBuilderFlags.NoTruncation);
734734
}
735735

736736
const paramDecl = createParameter(

0 commit comments

Comments
 (0)