You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-07-17 05:02:20 +02:00
G5V8DT-23853 Зависание EDT при редактировании модуля (проверка Xтекст)
правки по ревью
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
package com.e1c.v8codestyle.bsl.check;
|
package com.e1c.v8codestyle.bsl.check;
|
||||||
|
|
||||||
import static com._1c.g5.v8.dt.bsl.model.BslPackage.Literals.METHOD;
|
import static com._1c.g5.v8.dt.bsl.model.BslPackage.Literals.METHOD;
|
||||||
|
import static org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS;
|
||||||
|
|
||||||
import java.text.MessageFormat;
|
import java.text.MessageFormat;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -245,8 +246,7 @@ public final class RedundantExportMethodCheck
|
|||||||
|
|
||||||
ResourceSet resourceSet = new ResourceSetImpl();
|
ResourceSet resourceSet = new ResourceSetImpl();
|
||||||
//special ResourceSet for checking by saved modules
|
//special ResourceSet for checking by saved modules
|
||||||
resourceSet.getLoadOptions()
|
resourceSet.getLoadOptions().put(PERSISTED_DESCRIPTIONS, Boolean.TRUE);
|
||||||
.put(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS, Boolean.TRUE);
|
|
||||||
|
|
||||||
IResourceDescriptions indexData = resourceDescriptionsProvider.getResourceDescriptions(resourceSet);
|
IResourceDescriptions indexData = resourceDescriptionsProvider.getResourceDescriptions(resourceSet);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user