6363import org .junit .Test ;
6464import org .scijava .Context ;
6565import org .scijava .code .lsp .LanguageServerService ;
66- import org .scijava .code .lsp .LspClient ;
66+ import org .scijava .code .lsp .Positions ;
6767import org .scijava .code .lsp .MergedLanguageServer ;
6868import org .scijava .code .lsp .UpdatingCompletionList ;
6969import org .scijava .module .ModuleService ;
@@ -158,7 +158,7 @@ public void testSignatureHelp() throws Exception {
158158 SignatureHelp help = null ;
159159 while (help == null && System .currentTimeMillis () < deadline ) {
160160 help = server .signatureHelp (new SignatureHelpParams (
161- new TextDocumentIdentifier (uri ), LspClient .position (code , code
161+ new TextDocumentIdentifier (uri ), Positions .position (code , code
162162 .length ()))).get (1 , TimeUnit .MINUTES );
163163 }
164164 assertTrue (help .getSignatures ().get (0 ).getLabel ().contains ("dumps(" ));
@@ -174,15 +174,15 @@ public void testHover() throws Exception {
174174 Hover hover = null ;
175175 while (hover == null && System .currentTimeMillis () < deadline ) {
176176 hover = server .hover (new HoverParams (new TextDocumentIdentifier (uri ),
177- LspClient .position (code , code .indexOf ("dumps" ) + 2 ))).get (1 ,
177+ Positions .position (code , code .indexOf ("dumps" ) + 2 ))).get (1 ,
178178 TimeUnit .MINUTES );
179179 }
180180 assertTrue (String .valueOf (hover ), hover .getContents ().getRight ().getValue ()
181181 .contains ("JSON" ));
182182 // The word's range, in the script.
183- assertEquals (LspClient .position (code , code .indexOf ("dumps" )), hover
183+ assertEquals (Positions .position (code , code .indexOf ("dumps" )), hover
184184 .getRange ().getStart ());
185- assertEquals (LspClient .position (code , code .indexOf ("dumps" ) + 5 ), hover
185+ assertEquals (Positions .position (code , code .indexOf ("dumps" ) + 5 ), hover
186186 .getRange ().getEnd ());
187187 }
188188
@@ -297,7 +297,7 @@ private static List<CompletionItem> complete(final String code,
297297 {
298298 final String uri = sync (code , path );
299299 CompletionList list = server .completion (new CompletionParams (
300- new TextDocumentIdentifier (uri ), LspClient .position (code , code .length ())))
300+ new TextDocumentIdentifier (uri ), Positions .position (code , code .length ())))
301301 .get (1 , TimeUnit .MINUTES ).getRight ();
302302 if (settled && list instanceof UpdatingCompletionList ) {
303303 final CompletionList better = ((UpdatingCompletionList ) list ).update ()
@@ -324,7 +324,7 @@ private static void report(final String code, final String path,
324324 final String uri = sync (other , path );
325325 t0 = System .nanoTime ();
326326 final CompletionList first = server .completion (new CompletionParams (
327- new TextDocumentIdentifier (uri ), LspClient .position (other , other
327+ new TextDocumentIdentifier (uri ), Positions .position (other , other
328328 .length ()))).get (1 , TimeUnit .MINUTES ).getRight ();
329329 final long wait = System .nanoTime () - t0 ;
330330 final CompletionList update = first instanceof UpdatingCompletionList
0 commit comments