Skip to content

Commit bdbc03d

Browse files
committed
Address code review
1 parent 9528396 commit bdbc03d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

crates/ark/src/lsp/code_action/roxygen.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ pub(crate) fn roxygen_documentation(
127127
let indent_size = position.column;
128128
let documentation = documentation_builder(parameter_names, indent_size);
129129

130+
// The documentation string is inserted at the start position of the function
131+
// name. This handles the indentation of the first documentation line, and makes
132+
// new line handling trivial (we just add a new line to every documentation line).
130133
Some(RoxygenEdit {
131134
position,
132135
documentation,

0 commit comments

Comments
 (0)