File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -76,8 +76,18 @@ pub struct ServerState {
76
76
pub pinning_by_browsing_preview : bool ,
77
77
/// The client focusing file.
78
78
pub focusing : Option < ImmutPath > ,
79
- /// The client focusing range. There might be multiple ranges selected by
80
- /// the client at the same time, but we only record the primary one.
79
+ /// The client focusing selection ranges.
80
+ ///
81
+ /// To reduce complexity, we only record the primary selection range, while
82
+ /// there can be multiple ranges selected by the client at the same time.
83
+ /// - Example: In VS Code, you can create multiple cursors by `Ctrl + D`.
84
+ ///
85
+ /// To reduce complexity, A further question that we haven't covered
86
+ /// currently is that: The client may select ranges in multiple files at
87
+ /// the same time, but we only preasume that all of the selections are
88
+ /// in the [`Self::focusing`] file.
89
+ /// - Example: In VS Code, you can pick multiple ranges in multiple files by
90
+ /// the text search command.
81
91
pub focusing_selection : Option < LspRange > ,
82
92
/// The client focusing position, implicitly. It is inferred from the LSP
83
93
/// requests so may be inaccurate.
You can’t perform that action at this time.
0 commit comments