mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-04-05 18:15:47 +02:00
1449: Internal error при сортировке метаданных
This commit is contained in:
parent
698f6e3eb8
commit
94e9c36a9c
@ -119,6 +119,20 @@ public class SortService
|
||||
this.configurationProvider = configurationProvider;
|
||||
this.workspaceOrchestrator = workspaceOrchestrator;
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user