feat: apply post-processing for code completions (#404)

This commit is contained in:
Carl-Robert 2024-03-11 23:13:10 +02:00 committed by GitHub
parent 12cf5198f8
commit 91dd7bdb43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 363 additions and 19 deletions

View file

@ -48,14 +48,11 @@ public class CodeCompletionServiceTest extends IntegrationTest {
() -> {
var singleLineInlayElement = editor.getUserData(SINGLE_LINE_INLAY);
var multiLineInlayElement = editor.getUserData(MULTI_LINE_INLAY);
if (singleLineInlayElement != null && multiLineInlayElement != null) {
if (singleLineInlayElement != null && multiLineInlayElement == null) {
var singleLine =
((InlayInlineElementRenderer) singleLineInlayElement.getRenderer())
.getInlayText();
var multiLine =
((InlayBlockElementRenderer) multiLineInlayElement.getRenderer()).getInlayText();
return "TEST_SINGLE_LINE_OUTPUT".equals(singleLine)
&& "TEST_MULTI_LINE_OUTPUT".equals(multiLine);
return "TEST_SINGLE_LINE_OUTPUT".equals(singleLine);
}
return false;
}, 5);