We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 83f2401 + 0b76e43 commit 0ac8406Copy full SHA for 0ac8406
src/server/protocol.ts
@@ -494,7 +494,7 @@ namespace ts.server.protocol {
494
refactor: string;
495
/* The 'name' property from the refactoring action */
496
action: string;
497
- formatOptions: FormatCodeSettings,
+ formatOptions?: FormatCodeSettings,
498
};
499
500
src/server/session.ts
@@ -1488,7 +1488,7 @@ namespace ts.server {
1488
1489
const result = project.getLanguageService().getEditsForRefactor(
1490
file,
1491
- convertFormatOptions(args.formatOptions),
+ args.formatOptions ? convertFormatOptions(args.formatOptions) : this.projectService.getFormatCodeOptions(),
1492
position || textRange,
1493
args.refactor,
1494
args.action
0 commit comments