obsidian-linter icon indicating copy to clipboard operation
obsidian-linter copied to clipboard

Bug: Certain Use of Test Vault Causes Duplication of `Linter` Settings Tab

Open pjkaufman opened this issue 7 months ago • 0 comments

  • [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:

  1. Go to the base of the repo in the terminal
  2. Run npm run dev or npm run build
  3. Open the test vault
  4. Run command for running tests ctrl+p and then the run Linter tests command
  5. Go back to the terminal and copy the main.js to the obsidian linter plugin location
  6. Wait for hotreload to run
  7. 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.

pjkaufman avatar Dec 10 '23 00:12 pjkaufman