Skip to content

Commit

Permalink
variable resolution- allow empty values (#348)
Browse files Browse the repository at this point in the history
* vaiable resolution- allow empty values

Signed-off-by: Arun Venmany <[email protected]>

* rolled back workflow yaml changes

Signed-off-by: Arun Venmany <[email protected]>

---------

Signed-off-by: Arun Venmany <[email protected]>
  • Loading branch information
arunvenmany-ibm authored Feb 28, 2025
1 parent d3c5dbe commit 8869e8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void testInvalidVariableDiagnosticWithCodeAction() throws IOException, Ba
.setUri(serverXmlFile.toURI().toString());
}
texted = te(7, 0,
7, 0, String.format(" <variable name=\"%s\" value=\" \"/> %s","default.https",System.lineSeparator()));
7, 0, String.format(" <variable name=\"%s\" value=\"\"/> %s","default.https",System.lineSeparator()));
invalidCodeAction = ca(invalid1, texted);
invalidCodeAction.getEdit()
.getDocumentChanges()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void doCodeAction(ICodeActionRequest request, List<CodeAction> codeAction
// line separator in end of text insert will move current diagnostic line to 1 line
insertPos.setLine(diagnostic.getRange().getEnd().getLine());
codeActions.add(CodeActionFactory.insert("Add variable " + invalidVariable, insertPos,
String.format(" <variable name=\"%s\" value=\" \"/> %s", invalidVariable, System.lineSeparator()),
String.format(" <variable name=\"%s\" value=\"\"/> %s", invalidVariable, System.lineSeparator()),
document.getTextDocument(), diagnostic));
}
} catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ public void testInvalidVariableDiagnosticWithCodeAction() throws BadLocationExce
.setUri(serverXMLURI);
}
texted = te(7, 0,
7, 0, String.format(" <variable name=\"%s\" value=\" \"/> %s","default.https",System.lineSeparator()));
7, 0, String.format(" <variable name=\"%s\" value=\"\"/> %s","default.https",System.lineSeparator()));
invalidCodeAction = ca(invalid1, texted);
invalidCodeAction.getEdit()
.getDocumentChanges()
Expand Down

0 comments on commit 8869e8e

Please sign in to comment.