File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ namespace ts.refactor.extractSymbol {
10801080 changeTracker . insertNodeAtTopOfFile ( context . file , newVariableStatement ) ;
10811081 }
10821082 else {
1083- changeTracker . insertNodeBefore ( context . file , nodeToInsertBefore , newVariableStatement , /*blankLineBetween*/ true ) ;
1083+ changeTracker . insertNodeBefore ( context . file , nodeToInsertBefore , newVariableStatement , /*blankLineBetween*/ false ) ;
10841084 }
10851085
10861086 // Consume
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const f = () => {
77
88const f = ( ) => {
99 const newLocal = 2 + 1 ;
10-
1110 return /*RENAME*/ newLocal ;
1211} ;
1312// ==SCOPE::Extract to constant in global scope==
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const f = () => {
77
88const f = ( ) => {
99 const newLocal = 2 + 1 ;
10-
1110 return /*RENAME*/ newLocal ;
1211} ;
1312// ==SCOPE::Extract to constant in global scope==
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ for (let i = 0; i < 10; i++) {
1111for ( let i = 0 ; i < 10 ; i ++ ) {
1212 for ( let j = 0 ; j < 10 ; j ++ ) {
1313 const newLocal = i + 1 ;
14-
1514 const x = /*RENAME*/ newLocal ;
1615 }
1716}
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ for (let i = 0; i < 10; i++) {
1111for ( let i = 0 ; i < 10 ; i ++ ) {
1212 for ( let j = 0 ; j < 10 ; j ++ ) {
1313 const newLocal = i + 1 ;
14-
1514 const x = /*RENAME*/ newLocal ;
1615 }
1716}
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ for (let i = 0; i < 10; i++) {
88for ( let i = 0 ; i < 10 ; i ++ ) {
99 for ( let j = 0 ; j < 10 ; j ++ ) {
1010 const newLocal = 1 ;
11-
1211 let x = /*RENAME*/ newLocal ;
1312 }
1413}
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ for (let i = 0; i < 10; i++) {
88for ( let i = 0 ; i < 10 ; i ++ ) {
99 for ( let j = 0 ; j < 10 ; j ++ ) {
1010 const newLocal = 1 ;
11-
1211 let x = /*RENAME*/ newLocal ;
1312 }
1413}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class C {
1616 M2 ( ) { }
1717 M3 ( ) {
1818 const newLocal = 1 ;
19-
2019 let x = /*RENAME*/ newLocal ;
2120 }
2221}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class C {
1616 M2 ( ) { }
1717 M3 ( ) {
1818 const newLocal = 1 ;
19-
2019 let x = /*RENAME*/ newLocal ;
2120 }
2221}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class C {
1616 M2 ( ) { }
1717 M3 ( ) {
1818 const newLocal = 1 ;
19-
2019 let x = /*RENAME*/ newLocal ;
2120 }
2221}
You can’t perform that action at this time.
0 commit comments