File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,20 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
64
64
configuration : vscode . DebugConfiguration ;
65
65
}
66
66
67
+ // Find the recently used task and place it at the top of quickpick list.
68
+ let recentlyUsedConfig : vscode . DebugConfiguration | undefined ;
69
+ configs = configs . filter ( config => {
70
+ if ( config . detail !== TaskConfigStatus . recentlyUsed ) {
71
+ return true ;
72
+ } else {
73
+ recentlyUsedConfig = config ;
74
+ return false ;
75
+ }
76
+ } ) ;
77
+ if ( recentlyUsedConfig ) {
78
+ configs . unshift ( recentlyUsedConfig ) ;
79
+ }
80
+
67
81
const items : MenuItem [ ] = configs . map < MenuItem > ( config => {
68
82
const reducedConfig : vscode . DebugConfiguration = { ...config } ;
69
83
// Remove the "detail" property from the DebugConfiguration that will be written in launch.json.
@@ -355,7 +369,6 @@ export class DebugConfigurationProvider implements vscode.DebugConfigurationProv
355
369
} ) ;
356
370
} ) ) ;
357
371
configs . push ( defaultConfig ) ;
358
- // Sort tasks.
359
372
return configs ;
360
373
}
361
374
You can’t perform that action at this time.
0 commit comments