obsidian-linter
obsidian-linter copied to clipboard
Bug: Certain Use of Test Vault Causes Duplication of `Linter` Settings Tab
- [x] I have verified that I am on the latest version of the Linter
Describe the Bug
When using the test vault, if you have the vault running and then copy the main.js
file into the obsidian-linter plugin's location after running the integration tests, it causes the Linter
tab to get duplicated once hotreload runs.
How to Reproduce
Steps to reproduce the behavior:
- Go to the base of the repo in the terminal
- Run
npm run dev
ornpm run build
- Open the test vault
- Run command for running tests
ctrl+p
and then the run Linter tests command - Go back to the terminal and copy the
main.js
to the obsidian linter plugin location - Wait for hotreload to run
- Notice that there are now two settings tabs for the Linter
I have tried looking into the issue, but so far I am not 100% certain why Obsidian is not removing one of the Linter settings tabs. I likely need to just not create the settings tab for obsidian Linter while doing tests.