Skip to content
Merged
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 @@ -111,7 +111,13 @@ default Location getLocation(IJavaElement element, SearchMatch match) throws Jav
} else {
query = query + "&source-range=false";
}
uriString = new URI("konveyor-jdt", "contents", cf.getPath().toString(), query, null).toASCIIString();
String cfPath = cf.getPath().toString();
String os = System.getProperty("os.name").toLowerCase();
// windows home path will start with C: so need to add beginning '/'' for uri
if (os.indexOf("win") >= 0){
cfPath = '/' + cfPath;
}
uriString = new URI("konveyor-jdt", "contents", cfPath, query, null).toASCIIString();

} catch (URISyntaxException e) {
JavaLanguageServerPlugin.logException("Error generating URI for class ", e);
Expand Down
Loading