Before: When you first add the plugin and enable it, it immediately starts trying to index the vault even though you have not set your API key in the setting pane yet. This results in a bunch of 401s, and also interferes with your vault indexing successfully once you do input your API key.
After: If your API key is blank, or really short, don't set up anything but the setting panel. Once the API key is entered, initialize the plugin interactions.
Before: When you first add the plugin and enable it, it immediately starts trying to index the vault even though you have not set your API key in the setting pane yet. This results in a bunch of 401s, and also interferes with your vault indexing successfully once you do input your API key.
After: If your API key is blank, or really short, don't set up anything but the setting panel. Once the API key is entered, initialize the plugin interactions.