Skip to content

Commit cdd0434

Browse files
authored
Fix plugin warning when plugin is unknown but enabled. Closes #330 (#333)
Closes #330
1 parent 9da54b5 commit cdd0434

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
- Snippets: All snippets that reference schemas updated to use `v1.3.0` schema
2121

22+
### Fixed:
23+
24+
- Diagnostics: Fixed issue where unknown plugins would cause validation errors and incorrectly show "At least one plugin must be enabled" warning
25+
2226
## [1.6.0] - 2025-10-13
2327

2428
### Changed:

src/diagnostics.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ const validatePluginConfigurations = (
168168
.value as boolean;
169169
const pluginSnippet = pluginSnippets[pluginName];
170170

171+
// Skip validation for unknown plugins
172+
if (!pluginSnippet) {
173+
return;
174+
}
175+
171176
checkPluginConfiguration(
172177
pluginNode,
173178
diagnostics,

0 commit comments

Comments
 (0)