mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
+4
-4
@@ -128,10 +128,9 @@ public class InjectLanguageAction implements IntentionAction {
|
||||
try {
|
||||
Language language = injectable.toLanguage();
|
||||
for (LanguageInjectionSupport support : InjectorUtils.getActiveInjectionSupports()) {
|
||||
if (!support.isApplicableTo(host)) continue;
|
||||
if (!support.addInjectionInPlace(language, host)) continue;
|
||||
((PsiModificationTrackerImpl)PsiManager.getInstance(project).getModificationTracker()).incCounter();
|
||||
return;
|
||||
if (support.isApplicableTo(host) && support.addInjectionInPlace(language, host)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (TemporaryPlacesRegistry.getInstance(project).getLanguageInjectionSupport().addInjectionInPlace(language, host)) {
|
||||
HintManager.getInstance().showInformationHint(editor, StringUtil.escapeXml(language.getDisplayName()) + " was temporarily injected");
|
||||
@@ -142,6 +141,7 @@ public class InjectLanguageAction implements IntentionAction {
|
||||
FileContentUtil.reparseFiles(project, Collections.<VirtualFile>emptyList(), true);
|
||||
}
|
||||
else {
|
||||
((PsiModificationTrackerImpl)PsiManager.getInstance(project).getModificationTracker()).incCounter();
|
||||
DaemonCodeAnalyzer.getInstance(project).restart();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user