1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-06-30 05:49:24 +02:00

1449: Internal error при сортировке метаданных

This commit is contained in:
Vadim Geraskin
2024-06-05 19:07:40 +07:00
parent 698f6e3eb8
commit 94e9c36a9c

View File

@ -119,6 +119,20 @@ public class SortService
this.configurationProvider = configurationProvider; this.configurationProvider = configurationProvider;
this.workspaceOrchestrator = workspaceOrchestrator; this.workspaceOrchestrator = workspaceOrchestrator;
this.modelEditingSupport = modelEditingSupport; this.modelEditingSupport = modelEditingSupport;
workspaceOrchestrator.addListener(event -> {
if (event.isProjectClosing())
{
IProject project = event.getProject().getWorkspaceProject();
if (project != null)
{
SortJob job = jobs.remove(project);
if (job != null)
{
job.cancel();
}
}
}
});
} }
@LifecycleParticipant(phase = LifecyclePhase.RESOURCE_LOADING, @LifecycleParticipant(phase = LifecyclePhase.RESOURCE_LOADING,