Skip to content

Commit 788137b

Browse files
committed
Be consistent
1 parent 77e2500 commit 788137b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crates/ark/src/lsp/completions/completion_item.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub(super) unsafe fn completion_item_from_object(
252252
envir: SEXP,
253253
package: Option<&str>,
254254
promise_strategy: PromiseStrategy,
255-
no_parens: bool,
255+
no_trailing_parens: bool,
256256
) -> Result<CompletionItem> {
257257
if r_typeof(object) == PROMSXP {
258258
return completion_item_from_promise(
@@ -261,7 +261,7 @@ pub(super) unsafe fn completion_item_from_object(
261261
envir,
262262
package,
263263
promise_strategy,
264-
no_parens,
264+
no_trailing_parens,
265265
);
266266
}
267267

@@ -271,7 +271,7 @@ pub(super) unsafe fn completion_item_from_object(
271271
// In other words, when creating a completion item for these functions,
272272
// we should also figure out where we can receive the help from.
273273
if Rf_isFunction(object) != 0 {
274-
return completion_item_from_function(name, package, no_parens);
274+
return completion_item_from_function(name, package, no_trailing_parens);
275275
}
276276

277277
let mut item = completion_item(name, CompletionData::Object {
@@ -302,7 +302,7 @@ pub(super) unsafe fn completion_item_from_promise(
302302
envir: SEXP,
303303
package: Option<&str>,
304304
promise_strategy: PromiseStrategy,
305-
no_parens: bool,
305+
no_trailing_parens: bool,
306306
) -> Result<CompletionItem> {
307307
if r_promise_is_forced(object) {
308308
// Promise has already been evaluated before.
@@ -314,7 +314,7 @@ pub(super) unsafe fn completion_item_from_promise(
314314
envir,
315315
package,
316316
promise_strategy,
317-
no_parens,
317+
no_trailing_parens,
318318
);
319319
}
320320

@@ -331,7 +331,7 @@ pub(super) unsafe fn completion_item_from_promise(
331331
envir,
332332
package,
333333
promise_strategy,
334-
no_parens,
334+
no_trailing_parens,
335335
);
336336
}
337337

@@ -425,7 +425,7 @@ pub(super) unsafe fn completion_item_from_symbol(
425425
envir: SEXP,
426426
package: Option<&str>,
427427
promise_strategy: PromiseStrategy,
428-
no_parens: bool,
428+
no_trailing_parens: bool,
429429
) -> Option<Result<CompletionItem>> {
430430
let symbol = r_symbol!(name);
431431

@@ -458,7 +458,7 @@ pub(super) unsafe fn completion_item_from_symbol(
458458
envir,
459459
package,
460460
promise_strategy,
461-
no_parens,
461+
no_trailing_parens,
462462
))
463463
}
464464

0 commit comments

Comments
 (0)