Skip to content

Commit c1f3154

Browse files
committed
fix: added non-nls where it misses
1 parent 6c80694 commit c1f3154

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/com.espressif.idf.terminal.connector/src/com/espressif/idf/terminal/connector/launcher/IDFConsoleLauncherDelegate.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ public ITerminalConnector createTerminalConnector(Map<String, Object> properties
250250
arguments = "--no-rcs --no-globalrcs"; //$NON-NLS-1$
251251
} else if (image.contains("powershell")) { //$NON-NLS-1$
252252
arguments = "-NoProfile"; //$NON-NLS-1$
253-
} else if (Platform.OS_WIN32.equals(Platform.getOS()) && image.contains("cmd.exe")) {
253+
} else if (Platform.OS_WIN32.equals(Platform.getOS()) && image.contains("cmd.exe")) { //$NON-NLS-1$
254254
// This is the new part that rewrites the arguments for cmd.exe
255255
String title = (String) properties.get(ITerminalsConnectorConstants.PROP_TITLE);
256256
if (title != null && !title.isEmpty()) {
257-
String safeTitle = title.replaceAll("[\\r\\n\"&|<>^]", " ").trim();
258-
arguments = "/c \"title " + safeTitle + " && cmd.exe\"";
257+
String safeTitle = title.replaceAll("[\\r\\n\"&|<>^]", " ").trim(); //$NON-NLS-1$ //$NON-NLS-2$
258+
arguments = "/c \"title " + safeTitle + " && cmd.exe\""; //$NON-NLS-1$ //$NON-NLS-2$
259259
}
260260
}
261261

@@ -391,4 +391,4 @@ public ITerminalConnector createTerminalConnector(Map<String, Object> properties
391391
return connector;
392392
}
393393

394-
}
394+
}

0 commit comments

Comments
 (0)