11/*******************************************************************************
2- * Copyright (c) 2018 Red Hat Inc. and others.
2+ * Copyright (c) 2018, 2026 Red Hat Inc. and others.
33 *
44 * This program and the accompanying materials are made
55 * available under the terms of the Eclipse Public License 2.0
1212 *******************************************************************************/
1313package org .eclipse .wildwebdeveloper .debug .node ;
1414
15- import static org .eclipse .wildwebdeveloper .debug .SelectionUtils .*;
15+ import static org .eclipse .wildwebdeveloper .debug .SelectionUtils .getSelectedFile ;
16+ import static org .eclipse .wildwebdeveloper .debug .SelectionUtils .getSelectedProject ;
17+ import static org .eclipse .wildwebdeveloper .debug .SelectionUtils .pathOrEmpty ;
1618
1719import java .io .File ;
1820
@@ -283,7 +285,7 @@ public void initializeFrom(ILaunchConfiguration configuration) {
283285 try {
284286 String defaultSelectedFile = pathOrEmpty (getSelectedFile (shortcut ::canLaunch ));
285287 this .programPathText .setText (configuration .getAttribute (LaunchConstants .PROGRAM , defaultSelectedFile )); //$NON-NLS-1$
286- this .argumentsText .setText (configuration .getAttribute (NodeRunDAPDebugDelegate .ARGUMENTS , "" )); //$NON-NLS-1$
288+ this .argumentsText .setText (configuration .getAttribute (VSCodeJSDebugDelegate .ARGUMENTS , "" )); //$NON-NLS-1$
287289 this .workingDirectoryText
288290 .setText (configuration .getAttribute (DebugPlugin .ATTR_WORKING_DIRECTORY , pathOrEmpty (getSelectedProject ()))); //$NON-NLS-1$
289291 } catch (CoreException e ) {
@@ -295,7 +297,7 @@ public void initializeFrom(ILaunchConfiguration configuration) {
295297 public void performApply (ILaunchConfigurationWorkingCopy configuration ) {
296298 String programPath = this .programPathText .getText ();
297299 configuration .setAttribute (LaunchConstants .PROGRAM , programPath );
298- configuration .setAttribute (NodeRunDAPDebugDelegate .ARGUMENTS , this .argumentsText .getText ());
300+ configuration .setAttribute (VSCodeJSDebugDelegate .ARGUMENTS , this .argumentsText .getText ());
299301 configuration .setAttribute (DebugPlugin .ATTR_WORKING_DIRECTORY , this .workingDirectoryText .getText ());
300302 configuration .setMappedResources (ResourcesPlugin .getWorkspace ().getRoot ().findFilesForLocationURI (FileUtils .toUri (programPath )));
301303 }
0 commit comments