File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -573,15 +573,14 @@ namespace ts.server {
573
573
574
574
getEditsForRefactor (
575
575
fileName : string ,
576
- formatOptions : FormatCodeSettings ,
576
+ _formatOptions : FormatCodeSettings ,
577
577
positionOrRange : number | TextRange ,
578
578
refactorName : string ,
579
579
actionName : string ) : RefactorEditInfo {
580
580
581
581
const args = this . createFileLocationOrRangeRequestArgs ( positionOrRange , fileName ) as protocol . GetEditsForRefactorRequestArgs ;
582
582
args . refactor = refactorName ;
583
583
args . action = actionName ;
584
- args . formatOptions = formatOptions ;
585
584
586
585
const request = this . processRequest < protocol . GetEditsForRefactorRequest > ( CommandNames . GetEditsForRefactor , args ) ;
587
586
const response = this . processResponse < protocol . GetEditsForRefactorResponse > ( request ) ;
Original file line number Diff line number Diff line change @@ -494,7 +494,6 @@ namespace ts.server.protocol {
494
494
refactor : string ;
495
495
/* The 'name' property from the refactoring action */
496
496
action : string ;
497
- formatOptions ?: FormatCodeSettings ,
498
497
} ;
499
498
500
499
Original file line number Diff line number Diff line change @@ -1488,7 +1488,7 @@ namespace ts.server {
1488
1488
1489
1489
const result = project . getLanguageService ( ) . getEditsForRefactor (
1490
1490
file ,
1491
- args . formatOptions ? convertFormatOptions ( args . formatOptions ) : this . projectService . getFormatCodeOptions ( ) ,
1491
+ this . projectService . getFormatCodeOptions ( file ) ,
1492
1492
position || textRange ,
1493
1493
args . refactor ,
1494
1494
args . action
You can’t perform that action at this time.
0 commit comments