Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public static boolean isWindows() {
* @return the absolute file path
*/
public static String sourceLookup(String[] sourcePaths, String sourceName) {
for (String path : sourcePaths) {
Path fullpath = Paths.get(path, sourceName);
if (Files.isRegularFile(fullpath)) {
return fullpath.toString();
if (sourcePaths != null) {
for (String path : sourcePaths) {
Path fullpath = Paths.get(path, sourceName);
if (Files.isRegularFile(fullpath)) {
return fullpath.toString();
}
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ public CompletableFuture<Response> launchInTerminal(LaunchArguments launchArgume

@Override
public void preLaunch(LaunchArguments launchArguments, IDebugAdapterContext context) {
// TODO Auto-generated method stub
context.setSourcePaths(launchArguments.sourcePaths);
}
}