We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6275f9 commit 0af858aCopy full SHA for 0af858a
arduino-ide-extension/src/electron-main/theia/electron-main-application.ts
@@ -180,8 +180,8 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
180
if (!stats) {
181
return undefined;
182
}
183
- if (stats.isFile() && path.endsWith('.ino')) {
184
- return path;
+ if (stats.isFile()) {
+ return path.endsWith('.ino') ? path : undefined;
185
186
try {
187
const entries = await fs.readdir(path, { withFileTypes: true });
0 commit comments