Repository navigation
Commit 8cbf10b
code-lsp: let sessions follow where their scripts run
A ScriptSession now watches where its script runs, as its dialect says
(ScriptDocument.environment), before each request; when that changes, it
moves to a new server of the new environment, launched by the service.
It talks to its server off the caller's thread, in order, and starts it
on first use. Sessions are made with the service (new ScriptSession(
servers, language)), which no longer makes them; it offers dialect() and
document() instead.
RoutingLanguageServer is gone: a server analyzes scripts in exactly the
environment it is given. So jedi no longer installs dependency overlays
itself (nor uv, to do so): scripting-appose-python's dialect includes
them in the environment it reports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent c354e4e commit 8cbf10b
23 files changed
Lines changed: 433 additions & 1790 deletions
File tree
- code-lsp-groovy/src/test/java/org/scijava/code/lsp/groovy
- code-lsp-jedi
- src
- main
- java/org/scijava/code/lsp/jedi
- resources/org/scijava/code/lsp/jedi
- test/java/org/scijava/code/lsp/jedi
- code-lsp-jython/src/test/java/org/scijava/code/lsp/jython
- code-lsp
- src
- main/java/org/scijava/code/lsp
- impl
- server
- test/java/org/scijava/code/lsp
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
| 20 | + | |
26 | 21 | | |
27 | 22 | | |
28 | | - | |
29 | | - | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
| |||
This file was deleted.
0 commit comments