You've already forked v8-code-style
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:
@ -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,
|
||||||
|
Reference in New Issue
Block a user