mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-20 01:02:02 +00:00
feat: apply post-processing for code completions (#404)
This commit is contained in:
parent
12cf5198f8
commit
91dd7bdb43
10 changed files with 363 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue