File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 209
209
"ensure_final_newline_on_save" : true ,
210
210
// Whether or not to perform a buffer format before saving
211
211
"format_on_save" : " on" ,
212
- // How to perform a buffer format. This setting can take two values:
212
+ // How to perform a buffer format. This setting can take 4 values:
213
213
//
214
214
// 1. Format code using the current language server:
215
215
// "formatter": "language_server"
Original file line number Diff line number Diff line change @@ -171,10 +171,9 @@ impl ProjectDiagnosticsEditor {
171
171
. entry ( * language_server_id)
172
172
. or_default ( )
173
173
. insert ( path. clone ( ) ) ;
174
- let no_multiselections = this. editor . update ( cx, |editor, cx| {
175
- editor. selections . all :: < usize > ( cx) . len ( ) <= 1
176
- } ) ;
177
- if no_multiselections && !this. is_dirty ( cx) {
174
+ if this. editor . read ( cx) . selections . all :: < usize > ( cx) . is_empty ( )
175
+ && !this. is_dirty ( cx)
176
+ {
178
177
this. update_excerpts ( Some ( * language_server_id) , cx) ;
179
178
}
180
179
}
You can’t perform that action at this time.
0 commit comments