Skip to content

Commit 7371b04

Browse files
gselzerclaude
andcommitted
Follow scijava-code-lsp: sessions are made with the service
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a5f3553 commit 7371b04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test/java/org/scijava/plugins/scripting/jython/completion/JythonDialectTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ public void testAssignmentShadowsScriptParameter() {
152152
// -- Helper methods --
153153

154154
private List<String> complete(final String code) {
155-
try (ScriptSession session = context.service(LanguageServerService.class)
156-
.session(jython))
155+
try (ScriptSession session = new ScriptSession(context.service(
156+
LanguageServerService.class), jython))
157157
{
158158
return session.completion(code, code.length()).get(30, TimeUnit.SECONDS)
159159
.getItems().stream().map(CompletionItem::getLabel).collect(Collectors

0 commit comments

Comments
 (0)