Skip to content

Commit

Permalink
feat: Fix URL error (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknowIfGuestInDream committed Jun 16, 2024
1 parent 5c5acba commit e2a038a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,11 @@ private static List<Snippet> loadSnippets() {
URL url = null;
if(bundle !=null) {
try {
url= FileLocator.toFileURL(bundle.getEntry(SnippetsConfig.SNIPPETS_SOURCE_DIR.getPath()));
url= URIUtil.toURI(FileLocator.toFileURL(bundle.getEntry(SnippetsConfig.SNIPPETS_SOURCE_DIR.getPath()))).toURL();
} catch (IOException e) {
e.printStackTrace();
} catch (URISyntaxException e) {
e.printStackTrace();
}
}else {
try {
Expand Down

0 comments on commit e2a038a

Please sign in to comment.