Make formatOptions optional in GetEditsForRefactorRequestArgs

This commit is contained in:
Andy Hanson
2017-09-15 07:21:38 -07:00
parent fd4a8d1516
commit 0b76e43977
2 changed files with 2 additions and 2 deletions

View File

@@ -494,7 +494,7 @@ namespace ts.server.protocol {
refactor: string;
/* The 'name' property from the refactoring action */
action: string;
formatOptions: FormatCodeSettings,
formatOptions?: FormatCodeSettings,
};

View File

@@ -1488,7 +1488,7 @@ namespace ts.server {
const result = project.getLanguageService().getEditsForRefactor(
file,
convertFormatOptions(args.formatOptions),
args.formatOptions ? convertFormatOptions(args.formatOptions) : this.projectService.getFormatCodeOptions(),
position || textRange,
args.refactor,
args.action