Skip to content

Commit

Permalink
Merge pull request #113 from NipunaRanasinghe/master
Browse files Browse the repository at this point in the history
Add minor fix
  • Loading branch information
NipunaRanasinghe authored Jul 15, 2019
2 parents 2a5fe83 + 3bccd39 commit b0e378e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private boolean isAvailable(PsiElement psiElement, Editor editor, PsiFile psiFil
if (psiElement instanceof PsiFile || psiElement instanceof LSPPsiElement) {
return true;
} else {
return psiElement == null && IntellijLanguageClient.isExtensionSupported(psiFile.getVirtualFile());
return psiElement != null && IntellijLanguageClient.isExtensionSupported(psiFile.getVirtualFile());
}
}

Expand Down

0 comments on commit b0e378e

Please sign in to comment.