@@ -14,7 +14,7 @@ export const Empty = () => (
1414 on_copy = { ( ) => console . log ( 'Copied' ) }
1515 is_connected = { true }
1616 is_in_code_completions_mode = { false }
17- has_active_selection = { false }
17+ current_selection = ""
1818 has_active_editor = { true }
1919 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
2020 is_web_mode = { false }
@@ -40,7 +40,7 @@ export const WithText = () => (
4040 on_copy = { ( ) => console . log ( 'Copied' ) }
4141 is_connected = { true }
4242 is_in_code_completions_mode = { false }
43- has_active_selection = { false }
43+ current_selection = ""
4444 has_active_editor = { true }
4545 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
4646 is_web_mode = { false }
@@ -66,7 +66,7 @@ export const LongText = () => (
6666 on_copy = { ( ) => console . log ( 'Copied' ) }
6767 is_connected = { true }
6868 is_in_code_completions_mode = { false }
69- has_active_selection = { false }
69+ current_selection = ""
7070 has_active_editor = { true }
7171 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
7272 is_web_mode = { false }
@@ -93,7 +93,7 @@ export const WithPlaceholderSavedContext = () => (
9393 is_connected = { true }
9494 is_in_code_completions_mode = { false }
9595 has_active_editor = { true }
96- has_active_selection = { false }
96+ current_selection = ""
9797 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
9898 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
9999 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
@@ -119,7 +119,7 @@ export const WithPlaceholderSelection = () => (
119119 is_connected = { true }
120120 is_in_code_completions_mode = { false }
121121 has_active_editor = { true }
122- has_active_selection = { true }
122+ current_selection = "Selected text content"
123123 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
124124 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
125125 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
@@ -145,7 +145,7 @@ export const WithCommit = () => (
145145 is_connected = { true }
146146 is_in_code_completions_mode = { false }
147147 has_active_editor = { true }
148- has_active_selection = { false }
148+ current_selection = ""
149149 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
150150 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
151151 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
@@ -171,7 +171,7 @@ export const WithCommitWithQuotes = () => (
171171 is_connected = { true }
172172 is_in_code_completions_mode = { false }
173173 has_active_editor = { true }
174- has_active_selection = { false }
174+ current_selection = ""
175175 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
176176 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
177177 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
@@ -196,7 +196,7 @@ export const WithContextAtCommit = () => (
196196 is_connected = { true }
197197 is_in_code_completions_mode = { false }
198198 has_active_editor = { true }
199- has_active_selection = { false }
199+ current_selection = ""
200200 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
201201 on_search_click = { ( ) => console . log ( 'Search clicked' ) }
202202 on_at_sign_click = { ( ) => console . log ( '@ clicked' ) }
@@ -223,7 +223,7 @@ export const WithEditFormatSelector = () => {
223223 on_copy = { ( ) => console . log ( 'Copied' ) }
224224 is_connected = { true }
225225 is_in_code_completions_mode = { false }
226- has_active_selection = { false }
226+ current_selection = ""
227227 has_active_editor = { true }
228228 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
229229 is_web_mode = { false }
@@ -251,7 +251,7 @@ export const WithFilePaths = () => (
251251 on_copy = { ( ) => console . log ( 'Copied' ) }
252252 is_connected = { true }
253253 is_in_code_completions_mode = { false }
254- has_active_selection = { false }
254+ current_selection = ""
255255 has_active_editor = { true }
256256 on_caret_position_change = { ( pos ) => console . log ( 'Caret position:' , pos ) }
257257 is_web_mode = { false }
0 commit comments