Skip to content

Commit cfd3d16

Browse files
cdracmintellij-monorepo-bot
authored andcommitted
cleanup: rename file to psiFile to distinguish from VirtualFile
GitOrigin-RevId: e718eac8ba2d2177787ae941d8525b3c154d10fc
1 parent 2d87d6e commit cfd3d16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/com/intellij/lang/jsgraphql/ide/highlighting/GraphQLInjectionHighlightInfoFilter.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import com.intellij.openapi.util.TextRange
99
import com.intellij.psi.PsiFile
1010

1111
class GraphQLInjectionHighlightInfoFilter : HighlightInfoFilter {
12-
override fun accept(highlightInfo: HighlightInfo, file: PsiFile?): Boolean {
13-
if (file is GraphQLFile && highlightInfo.isFromInjection && file.fileDocument is DocumentWindow) {
12+
override fun accept(highlightInfo: HighlightInfo, psiFile: PsiFile?): Boolean {
13+
if (psiFile is GraphQLFile && highlightInfo.isFromInjection && psiFile.fileDocument is DocumentWindow) {
1414
val infoRange = TextRange.create(highlightInfo)
15-
val injectedLanguageManager = InjectedLanguageManager.getInstance(file.project)
16-
val fragments = injectedLanguageManager.intersectWithAllEditableFragments(file, infoRange)
15+
val injectedLanguageManager = InjectedLanguageManager.getInstance(psiFile.project)
16+
val fragments = injectedLanguageManager.intersectWithAllEditableFragments(psiFile, infoRange)
1717
if (fragments.isNotEmpty() && fragments.all { it.isEmpty }) {
1818
return false
1919
}

src/main/com/intellij/lang/jsgraphql/ide/validation/fixes/GraphQLMissingTypeFix.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private GraphQLMissingTypeFix(@NotNull GraphQLIdentifier element, GraphQLTypeKin
6262

6363
@Override
6464
public void invoke(@NotNull Project project,
65-
@NotNull PsiFile file,
65+
@NotNull PsiFile psiFile,
6666
@Nullable("is null when called from inspection") Editor editor,
6767
@NotNull PsiElement startElement,
6868
@NotNull PsiElement endElement) {

0 commit comments

Comments
 (0)