Skip to content

Commit 17b7ee0

Browse files
committed
修复编译错误
1 parent 7e7967c commit 17b7ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormatServer/src/Service/CommandService.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void CommandService::Reformat(std::shared_ptr<vscode::ExecuteCommandParams> para
8888
auto& edit = change.emplace_back();
8989
LuaFormatRange formattedRange(static_cast<int>(range.start.line), static_cast<int>(range.end.line));
9090

91-
auto formatResult = GetService<CodeFormatService>()->RangeFormat(formattedRange, parser, options);
91+
auto formatResult = GetService<CodeFormatService>()->RangeFormat(formattedRange, parser, *options);
9292

9393
edit.newText = std::move(formatResult);
9494

0 commit comments

Comments
 (0)