Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
execute: () => {
if (isEnabled()) {
let context = docManager.contextForWidget(contextMenuWidget());
return renameDialog(docManager, context!.path);
}
}
});
execute: () => {
if (isEnabled()) {
let context = docManager.contextForWidget(app.shell.currentWidget);
return renameDialog(docManager, context!.path);
}
}
});
execute: () => {
if (isEnabled()) {
let context = docManager.contextForWidget(contextMenuWidget());
return renameDialog(docManager, context!.path);
}
}
});