Skip to content

Commit 9881296

Browse files
gselzerclaude
andcommitted
Follow scijava-code-lsp's rename to scijava-lsp
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3318b97 commit 9881296

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ script's own line numbers.
138138
## Code completion
139139

140140
The Script Editor completes code in these scripts with a Python language
141-
server, `scijava-code-lsp-ty`'s: [ty](https://docs.astral.sh/ty/). This
141+
server, `scijava-lsp-ty`'s: [ty](https://docs.astral.sh/ty/). This
142142
plugin's
143143
`ApposePythonDialect` shows it each script as plain Python, and says where
144-
the script runs (so any other client of `scijava-code-lsp`'s
144+
the script runs (so any other client of `scijava-lsp`'s
145145
`LanguageServerService` gets the same). It completes names in scope,
146146
the script's `#@` parameters, `task`, builtins and keywords, and members of
147147
objects and modules; and it gives function signatures (with parameter names
@@ -152,7 +152,7 @@ NumPy and ty), which is built in the background
152152
the first time you complete code, and takes a while only then; until it is, there are no completions. The server
153153
talks to the editor via the
154154
[Language Server Protocol](https://microsoft.github.io/language-server-protocol/)
155-
(see `scijava-code-lsp`); it sees the script as plain Python, with its `#@`
155+
(see `scijava-lsp`); it sees the script as plain Python, with its `#@`
156156
parameters declared. One server runs per script environment; servers
157157
unused for 10 minutes stop. Their error output goes to
158158
`code-lsp-ty-server.log`, next to Appose's environments.

‎pom.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@
9696
NB: Task#log() needs it. -->
9797
<scijava-common.version>2.101.0</scijava-common.version>
9898

99-
<scijava-code-lsp.version>0.1.0-SNAPSHOT</scijava-code-lsp.version>
100-
<scijava-code-lsp-ty.version>0.1.0-SNAPSHOT</scijava-code-lsp-ty.version>
99+
<scijava-lsp.version>0.1.0-SNAPSHOT</scijava-lsp.version>
100+
<scijava-lsp-ty.version>0.1.0-SNAPSHOT</scijava-lsp-ty.version>
101101
</properties>
102102

103103
<dependencies>
@@ -112,13 +112,13 @@
112112
</dependency>
113113
<dependency>
114114
<groupId>org.scijava</groupId>
115-
<artifactId>scijava-code-lsp</artifactId>
116-
<version>${scijava-code-lsp.version}</version>
115+
<artifactId>scijava-lsp</artifactId>
116+
<version>${scijava-lsp.version}</version>
117117
</dependency>
118118
<dependency>
119119
<groupId>org.scijava</groupId>
120-
<artifactId>scijava-code-lsp-ty</artifactId>
121-
<version>${scijava-code-lsp-ty.version}</version>
120+
<artifactId>scijava-lsp-ty</artifactId>
121+
<version>${scijava-lsp-ty.version}</version>
122122
<!-- NB: For integration tests; applications choose their servers. -->
123123
<scope>test</scope>
124124
</dependency>

‎src/main/java/org/scijava/plugins/scripting/appose/python/completion/ApposePythonDialect.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
import net.imglib2.RandomAccessibleInterval;
4141

4242
import org.apposed.appose.NDArray;
43-
import org.scijava.code.lsp.Environment;
44-
import org.scijava.code.lsp.ScriptDialect;
43+
import org.scijava.lsp.Environment;
44+
import org.scijava.lsp.ScriptDialect;
4545
import org.scijava.plugin.Parameter;
4646
import org.scijava.plugin.Plugin;
4747
import org.scijava.plugins.scripting.appose.python.ApposePythonScriptLanguage;

‎src/main/java/org/scijava/plugins/scripting/appose/python/completion/ApposePythonEnvironments.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ protected boolean removeEldestEntry(
149149
* @param text The script's text.
150150
* @param path The script's file path, or null if it has none.
151151
*/
152-
org.scijava.code.lsp.Environment environment(final String text,
152+
org.scijava.lsp.Environment environment(final String text,
153153
final String path)
154154
{
155155
final String python = scriptPython(text, path);
156-
return python == null ? new org.scijava.code.lsp.Environment()
157-
: new org.scijava.code.lsp.Environment().withInterpreter(python);
156+
return python == null ? new org.scijava.lsp.Environment()
157+
: new org.scijava.lsp.Environment().withInterpreter(python);
158158
}
159159

160160
/**

‎src/test/java/org/scijava/plugins/scripting/appose/python/completion/ApposePythonCompletionIntegrationTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import org.junit.BeforeClass;
5151
import org.junit.Test;
5252
import org.scijava.Context;
53-
import org.scijava.code.lsp.LanguageServerService;
54-
import org.scijava.code.lsp.ScriptSession;
53+
import org.scijava.lsp.LanguageServerService;
54+
import org.scijava.lsp.ScriptSession;
5555
import org.scijava.module.ModuleService;
5656
import org.scijava.script.ScriptInfo;
5757
import org.scijava.script.ScriptLanguage;
@@ -61,7 +61,7 @@
6161
/**
6262
* End-to-end tests of completing Python scripts run via Appose (see
6363
* {@link ApposePythonDialect}), with a real ty language server (from
64-
* scijava-code-lsp-ty, whose own tests test it on plain Python), through the
64+
* scijava-lsp-ty, whose own tests test it on plain Python), through the
6565
* {@link LanguageServerService}, as editors use it: what is particular to
6666
* these scripts.
6767
* <p>

‎src/test/java/org/scijava/plugins/scripting/appose/python/completion/ApposePythonDialectTest.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
import org.junit.Before;
4848
import org.junit.Test;
4949
import org.scijava.Context;
50-
import org.scijava.code.lsp.Environment;
51-
import org.scijava.code.lsp.ScriptDialect;
52-
import org.scijava.code.lsp.ScriptDialect.Header;
53-
import org.scijava.code.lsp.ScriptDialect.Variable;
50+
import org.scijava.lsp.Environment;
51+
import org.scijava.lsp.ScriptDialect;
52+
import org.scijava.lsp.ScriptDialect.Header;
53+
import org.scijava.lsp.ScriptDialect.Variable;
5454
import org.scijava.plugin.PluginService;
5555
import org.scijava.plugins.scripting.appose.python.ScriptEnvironment;
5656
import org.scijava.plugins.scripting.appose.python._internal.ResidentWorkerService;

0 commit comments

Comments
 (0)