We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbd7b4e commit 0b938aeCopy full SHA for 0b938ae
1 file changed
src/main/java/nextflow/lsp/services/config/ConfigLinkProvider.java
@@ -102,6 +102,16 @@ public void visitConfigInclude(ConfigIncludeNode node) {
102
}
103
104
protected static URI getIncludeUri(URI uri, String source) {
105
+ // return source URI if it is already an absolute URI (e.g. http URL)
106
+ try {
107
+ var sourceUri = new URI(source);
108
+ if( sourceUri.getScheme() != null )
109
+ return sourceUri;
110
+ }
111
+ catch( Exception e ) {
112
+ // ignore
113
114
+ // otherwise, resolve the source path against the including URI
115
return Path.of(uri).getParent().resolve(source).normalize().toUri();
116
117
0 commit comments