This may be related to this bug:
After running the editor my custom menu item scripts cease to function. Restarting causes them to function again.
Here’s a quick test script for it.
using UnityEngine;
using UnityEditor;
public class MenuItemTest : Editor
{
[MenuItem("Tools/Menu Item")]
public static void MenuTest()
{
Debug.Log("Test");
}
}