stoplightio / vscode-spectral

VS Code extension bringing the awesome Spectral JSON/YAML linter with OpenAPI/AsyncAPI support
https://marketplace.visualstudio.com/items?itemName=stoplight.spectral
Apache License 2.0
72 stars 23 forks source link

Move removing dependencies to inside settings check #229

Open jc43081 opened 11 months ago

jc43081 commented 11 months ago

When changing dependent files, they are being removed as dependencies when the dependent file is being closed. This is causing the problem of them remaining even after the main file is closed. Moving the removal inside the check for settings.validate fixes this issue.

Fixes #205.

Checklist

Does this PR introduce a breaking change?