Deprecated properties without replacement ...

Should not get a "Replace with..." quickfix
This commit is contained in:
Kris De Volder
2019-02-06 12:57:57 -08:00
parent 1106709183
commit bc8b0300ca
10 changed files with 137 additions and 13 deletions

View File

@@ -858,6 +858,18 @@ public class Editor {
return actions.get(0);
}
public void assertNoCodeAction(Diagnostic problem) throws Exception {
List<CodeAction> actions = getCodeActions(problem);
if (actions!=null && !actions.isEmpty()) {
StringBuilder found = new StringBuilder();
for (CodeAction codeAction : actions) {
found.append("\n"+codeAction.getLabel());
}
fail("Expected no code actions but found:"+found);
}
}
public String getUri() {
return doc.getUri();
}
@@ -896,4 +908,5 @@ public class Editor {
public void setCursor(Position position) {
this.selectionStart = this.selectionEnd = doc.toOffset(position);
}
}