We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b29f66c + 4f3c211 commit 55a7e62Copy full SHA for 55a7e62
src/main.ts
@@ -232,7 +232,11 @@ export default class LinterPlugin extends Plugin {
232
icon: iconInfo.folder.id,
233
editorCheckCallback: (checking: Boolean, _, ctx) => {
234
if (checking) {
235
- return !ctx.file.parent.isRoot();
+ if (ctx && ctx.file && ctx.file instanceof TFile && ctx.file.parent) {
236
+ return !ctx.file.parent.isRoot();
237
+ }
238
+
239
+ return false;
240
}
241
242
this.createFolderLintModal(ctx.file.parent);
0 commit comments