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