Skip to content

Commit

Permalink
Fix detection of Specflow file in Language Substitutor. This should fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Socolin committed Mar 11, 2021
1 parent aae5ff4 commit 26c7cf2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class SpecflowLanguageSubstitutor extends LanguageSubstitutor {
var parent = virtualFile.getParent();
while (parent != null) {
for (VirtualFile child : parent.getChildren()) {
if (child.getName().endsWith("proj")) {
if (child.getName().endsWith("proj") || child.getName().endsWith(".cs")) {
if (findCsharpFile(parent)) {
return GherkinLanguage.INSTANCE;
}
Expand Down

0 comments on commit 26c7cf2

Please sign in to comment.