mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-12-11 09:24:19 -06:00
Merge pull request #18501 from Microsoft/formatOptions
Make formatOptions optional in GetEditsForRefactorRequestArgs
This commit is contained in:
commit
0ac8406cd7
@ -494,7 +494,7 @@ namespace ts.server.protocol {
|
||||
refactor: string;
|
||||
/* The 'name' property from the refactoring action */
|
||||
action: string;
|
||||
formatOptions: FormatCodeSettings,
|
||||
formatOptions?: FormatCodeSettings,
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user