From b66e6ea02f7387922fc79b63bf58057a8bc8a027 Mon Sep 17 00:00:00 2001 From: BlankWasThere <186826343+BlankWasThere@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:43:44 +0530 Subject: [PATCH] Fix grammar in comments (#48693) Release Notes: - N/A --- crates/project/src/project.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 265c8147da40ee1b1832c3e6d72def0b56188794..e0e8cc78fd6f1e99d41600aab5e4286ae2aa504e 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -488,11 +488,11 @@ pub struct InlayHint { pub resolve_state: ResolveState, } -/// The user's intent behind a given completion confirmation +/// The user's intent behind a given completion confirmation. #[derive(PartialEq, Eq, Hash, Debug, Clone, Copy)] pub enum CompletionIntent { - /// The user intends to 'commit' this result, if possible - /// completion confirmations should run side effects. + /// The user intends to 'commit' this result, if possible. + /// Completion confirmations should run side effects. /// /// For LSP completions, will respect the setting `completions.lsp_insert_mode`. Complete, @@ -500,9 +500,9 @@ pub enum CompletionIntent { CompleteWithInsert, /// Similar to [Self::Complete], but behaves like `lsp_insert_mode` is set to `replace`. CompleteWithReplace, - /// The user intends to continue 'composing' this completion - /// completion confirmations should not run side effects and - /// let the user continue composing their action + /// The user intends to continue 'composing' this completion. + /// Completion confirmations should not run side effects and + /// let the user continue composing their action. Compose, } @@ -540,7 +540,7 @@ pub struct Completion { /// Whether to adjust indentation (the default) or not. pub insert_text_mode: Option, /// An optional callback to invoke when this completion is confirmed. - /// Returns, whether new completions should be retriggered after the current one. + /// Returns whether new completions should be retriggered after the current one. /// If `true` is returned, the editor will show a new completion menu after this completion is confirmed. /// if no confirmation is provided or `false` is returned, the completion will be committed. pub confirm: Option bool>>, @@ -668,7 +668,7 @@ impl std::fmt::Debug for Completion { pub struct CompletionResponse { pub completions: Vec, pub display_options: CompletionDisplayOptions, - /// When false, indicates that the list is complete and so does not need to be re-queried if it + /// When false, indicates that the list is complete and does not need to be re-queried if it /// can be filtered instead. pub is_incomplete: bool, } @@ -688,7 +688,7 @@ impl CompletionDisplayOptions { #[derive(Clone, Debug, Default)] pub(crate) struct CoreCompletionResponse { pub completions: Vec, - /// When false, indicates that the list is complete and so does not need to be re-queried if it + /// When false, indicates that the list is complete and does not need to be re-queried if it /// can be filtered instead. pub is_incomplete: bool, }