mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-128085 Incorrect find usage of private var or functions at .mxml files
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.usages.impl;
|
||||
|
||||
import com.intellij.find.SearchInBackgroundOption;
|
||||
import com.intellij.injected.editor.VirtualFileWindow;
|
||||
import com.intellij.openapi.actionSystem.DataKey;
|
||||
import com.intellij.openapi.actionSystem.DataSink;
|
||||
import com.intellij.openapi.actionSystem.TypeSafeDataProvider;
|
||||
@@ -275,6 +276,9 @@ public class UsageViewManagerImpl extends UsageViewManager {
|
||||
}
|
||||
|
||||
private static boolean isFileInScope(@NotNull VirtualFile file, @NotNull SearchScope searchScope) {
|
||||
if (file instanceof VirtualFileWindow) {
|
||||
file = ((VirtualFileWindow)file).getDelegate();
|
||||
}
|
||||
if (searchScope instanceof LocalSearchScope) {
|
||||
return ((LocalSearchScope)searchScope).isInScope(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user