implements PLN-0023

This commit is contained in:
2026-03-31 16:57:31 +01:00
parent 53552ca012
commit 8dd3b58f39
24 changed files with 297 additions and 9 deletions
@@ -2,6 +2,8 @@ package p.studio;
import com.fasterxml.jackson.databind.ObjectMapper;
import p.packer.Packer;
import p.lsp.PrometeuLspServiceFactory;
import p.lsp.v1.PrometeuLspV1ServiceFactory;
import p.studio.events.StudioEventBus;
import p.studio.events.StudioPackerEventAdapter;
import p.studio.utilities.ThemeService;
@@ -19,6 +21,7 @@ public final class AppContainer implements Container {
private final ThemeService themeService;
private final StudioEventBus studioEventBus;
private final ObjectMapper mapper;
private final PrometeuLspServiceFactory prometeuLspServiceFactory;
private final ProjectDocumentVfsFactory projectDocumentVfsFactory;
private final EmbeddedPacker embeddedPacker;
private final StudioBackgroundTasks backgroundTasks;
@@ -28,6 +31,7 @@ public final class AppContainer implements Container {
this.themeService = new ThemeService();
this.studioEventBus = new StudioEventBus();
this.mapper = new ObjectMapper();
this.prometeuLspServiceFactory = new PrometeuLspV1ServiceFactory();
this.projectDocumentVfsFactory = new FilesystemProjectDocumentVfsFactory();
final ExecutorService backgroundExecutor = Executors.newFixedThreadPool(2, new StudioWorkerThreadFactory());
this.backgroundTasks = new StudioBackgroundTasks(backgroundExecutor);
@@ -55,6 +59,11 @@ public final class AppContainer implements Container {
return mapper;
}
@Override
public PrometeuLspServiceFactory getPrometeuLspServiceFactory() {
return prometeuLspServiceFactory;
}
@Override
public ProjectDocumentVfsFactory getProjectDocumentVfsFactory() {
return projectDocumentVfsFactory;