File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,9 @@ fn diag_picker(
252
252
. into( )
253
253
} ,
254
254
) ,
255
+ ui:: PickerColumn :: new( "source" , |item: & PickerDiagnostic , _| {
256
+ item. diag. source. as_deref( ) . unwrap_or( "" ) . into( )
257
+ } ) ,
255
258
ui:: PickerColumn :: new( "code" , |item: & PickerDiagnostic , _| {
256
259
match item. diag. code. as_ref( ) {
257
260
Some ( NumberOrString :: Number ( n) ) => n. to_string( ) . into( ) ,
@@ -263,12 +266,12 @@ fn diag_picker(
263
266
item. diag. message. as_str( ) . into( )
264
267
} ) ,
265
268
] ;
266
- let mut primary_column = 2 ; // message
269
+ let mut primary_column = 3 ; // message
267
270
268
271
if format == DiagnosticsFormat :: ShowSourcePath {
269
272
columns. insert (
270
273
// between message code and message
271
- 2 ,
274
+ 3 ,
272
275
ui:: PickerColumn :: new ( "path" , |item : & PickerDiagnostic , _| {
273
276
if let Some ( path) = item. location . uri . as_path ( ) {
274
277
path:: get_truncated_path ( path)
You can’t perform that action at this time.
0 commit comments