Filter run configuration to only Zig files

This commit is contained in:
Nicholas Gates 2023-09-28 09:34:15 +01:00
parent 8351e359d5
commit d920012f96
2 changed files with 3 additions and 0 deletions

0
gradlew vendored Normal file → Executable file
View file

View file

@ -51,6 +51,9 @@ public class ZigRunExecutionConfigurationProducer extends AbstractZigRunExecutio
if (psiFile == null) {
return false;
}
if (!(psiFile instanceof ZigFile)) {
return false;
}
var theFile = psiFile.getVirtualFile();
var filePath = theFile.getPath();
if (PsiUtil.getElementType(element) == ZigTypes.KEYWORD_TEST) {