Fix for PT-167494938
Snippet completion was broken for concourse resource type 'extra insertions'.
This commit is contained in:
@@ -717,12 +717,13 @@ public class Editor {
|
||||
setText(saveText);
|
||||
}
|
||||
|
||||
public void assertCompletionWithLabel(Predicate<String> expectLabel, String expectedResult) throws Exception {
|
||||
public CompletionItem assertCompletionWithLabel(Predicate<String> expectLabel, String expectedResult) throws Exception {
|
||||
CompletionItem completion = assertCompletionWithLabel(expectLabel);
|
||||
String saveText = getText();
|
||||
apply(completion);
|
||||
assertEquals(expectedResult, getText());
|
||||
setText(saveText);
|
||||
return completion;
|
||||
}
|
||||
|
||||
public void setSelection(int start, int end) {
|
||||
|
||||
Reference in New Issue
Block a user