Filter run configuration to only Zig files
This commit is contained in:
parent
8351e359d5
commit
d920012f96
2 changed files with 3 additions and 0 deletions
0
gradlew
vendored
Normal file → Executable file
0
gradlew
vendored
Normal file → Executable file
|
@ -51,6 +51,9 @@ public class ZigRunExecutionConfigurationProducer extends AbstractZigRunExecutio
|
||||||
if (psiFile == null) {
|
if (psiFile == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!(psiFile instanceof ZigFile)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
var theFile = psiFile.getVirtualFile();
|
var theFile = psiFile.getVirtualFile();
|
||||||
var filePath = theFile.getPath();
|
var filePath = theFile.getPath();
|
||||||
if (PsiUtil.getElementType(element) == ZigTypes.KEYWORD_TEST) {
|
if (PsiUtil.getElementType(element) == ZigTypes.KEYWORD_TEST) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue