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
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion debug/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion debug/service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion ls/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ protected CqlCompilerOptions readOptions(URI rootUri) {

CqlCompilerOptions options = null;

var optionsUri = Uris.addPath(rootUri, "/cql-options.json");
var optionsUri = Uris.addPath(rootUri, "/cql/cql-options.json");
InputStream input = contentService.read(optionsUri);

if (input != null) {
// TODO: Why is this using fromFile and not fromSource?
options = CqlTranslatorOptions.fromFile(Path("/cql-options.json")).getCqlCompilerOptions();
options =
CqlTranslatorOptions.fromFile(Path("/cql/cql-options.json")).getCqlCompilerOptions();
} else {
log.info(String.format("%s not found, using default options", optionsUri.toString()));
options = CqlTranslatorOptions.defaultOptions().getCqlCompilerOptions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,18 @@ public Map<URI, Set<Diagnostic>> lint(URI uri) {
.collect(Collectors.toList());

URI root = Uris.getHead(uri);
List<Pair<VersionedIdentifier, URI>> libraryUriList = uniqueLibraries.stream()
.map(x -> Pair.of(
x, this.contentService.locate(root, x).iterator().next()))
.collect(Collectors.toList());
var libraryUriList = new ArrayList<Pair<VersionedIdentifier, URI>>();
for (var libraryIdentifier : uniqueLibraries) {
var uris = this.contentService.locate(root, libraryIdentifier);
if (uris != null && !uris.isEmpty()) {
libraryUriList.add(Pair.of(libraryIdentifier, uris.iterator().next()));
} else {
// The message is associated with a library loaded from outside the content service (e.g. an npm
// library)
// So associate the message with the current uri
libraryUriList.add(Pair.of(libraryIdentifier, uri));
}
}

Map<VersionedIdentifier, URI> libraryUris = new HashMap<>();
for (Pair<VersionedIdentifier, URI> p : libraryUriList) {
Expand Down
2 changes: 1 addition & 1 deletion ls/service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion plugin/debug/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.opencds.cqf.cql.ls</groupId>
<artifactId>cql-ls</artifactId>
<packaging>pom</packaging>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.1</version>

<name>CQL Language Server</name>
<description>A Language Server for CQL implementing the LSP</description>
Expand Down