Skip to content

Commit ec5efbd

Browse files
committed
fix: don’t change user provided path configuration
1 parent 257521b commit ec5efbd

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

plugin/src/main/java/io/snyk/languageserver/LsRuntimeEnvironment.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,9 @@ public void addPath(Map<String, String> env) {
123123
var pathOptional = Preferences.getInstance().getPath();
124124
if (pathOptional.isPresent()) {
125125
var path = pathOptional.get();
126-
String splitBy;
127-
if (path.contains(";")) {
128-
splitBy = ";";
129-
} else {
130-
splitBy = ":";
131-
}
132-
String newPath = path.replace(splitBy, File.pathSeparator)
133-
+ File.pathSeparator
126+
String newPath = path + File.pathSeparator
134127
+ System.getenv("PATH");
135-
env.put("PATH", newPath);
128+
env.put("PATH", newPath);
136129
}
137130
}
138131

0 commit comments

Comments
 (0)