@@ -118,27 +118,27 @@ export default class DebugUtils {
118118 }
119119 }
120120
121- public static async cleanDebugLaunchConfigsFor ( connection : Connection ) : Promise < void > {
122- Log . d ( "Clean launch configs from " + connection . workspacePath ) ;
123-
124- // The potential names of the projects' debug configurations, whether or not they exist
125- const projectDebugNames : string [ ] = connection . projects . map ( ( project ) => this . getDebugName ( project ) ) ;
126-
127- const workspaceConfig = this . getWorkspaceConfigFor ( connection ) ;
128- const launchConfigs = this . getLaunchConfigurationsFrom ( workspaceConfig ) ;
129-
130- // Loop backwards so we can remove elements
131- for ( let i = launchConfigs . length - 1 ; i >= 0 ; i -- ) {
132- const existingLaunch : vscode . DebugConfiguration = launchConfigs [ i ] ;
133- if ( ! projectDebugNames . includes ( existingLaunch . name ) ) {
134- // This launch config does not map to an existing project, so we delete it.
135- Log . i ( `Delete launch config: ${ existingLaunch . name } ` ) ;
136- launchConfigs . splice ( i , 1 ) ;
137- }
138- }
139-
140- await this . updateWorkspaceLaunchConfigs ( workspaceConfig , launchConfigs ) ;
141- }
121+ // public static async cleanDebugLaunchConfigsFor(connection: Connection): Promise<void> {
122+ // Log.d("Clean launch configs from " + connection.workspacePath);
123+
124+ // // The potential names of the projects' debug configurations, whether or not they exist
125+ // const projectDebugNames: string[] = connection.projects.map( (project) => this.getDebugName(project));
126+
127+ // const workspaceConfig = this.getWorkspaceConfigFor(connection);
128+ // const launchConfigs = this.getLaunchConfigurationsFrom(workspaceConfig);
129+
130+ // // Loop backwards so we can remove elements
131+ // for (let i = launchConfigs.length - 1; i >= 0; i--) {
132+ // const existingLaunch: vscode.DebugConfiguration = launchConfigs[i];
133+ // if (!projectDebugNames.includes(existingLaunch.name)) {
134+ // // This launch config does not map to an existing project, so we delete it.
135+ // Log.i(`Delete launch config: ${existingLaunch.name}`);
136+ // launchConfigs.splice(i, 1);
137+ // }
138+ // }
139+
140+ // await this.updateWorkspaceLaunchConfigs(workspaceConfig, launchConfigs);
141+ // }
142142
143143 // keys for launch.json
144144 private static readonly LAUNCH : string = "launch" ; // non-nls
0 commit comments