Skip to content

Commit cda233e

Browse files
committed
Update diagnostics to change severity from Error to Warning for plugin checks. Closes #219
Closes #219
1 parent b2d0215 commit cda233e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
### Changed:
1717

1818
- Command: Refactored stop command logic
19+
- Diagnostics: Changed check to ensure at least one plugin from Error to Warning
1920

2021
## [0.18.3] - 2025-03-03
2122

src/diagnostics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ const checkAtLeastOneEnabledPlugin = (pluginNodes: parse.ObjectNode[], diagnosti
181181
new vscode.Diagnostic(
182182
getRangeFromASTNode(pluginsNode),
183183
'Add at least one plugin',
184-
vscode.DiagnosticSeverity.Error
184+
vscode.DiagnosticSeverity.Warning
185185
)
186186
);
187187
} else {
@@ -199,7 +199,7 @@ const checkAtLeastOneEnabledPlugin = (pluginNodes: parse.ObjectNode[], diagnosti
199199
new vscode.Diagnostic(
200200
getRangeFromASTNode(pluginsNode),
201201
'At least one plugin must be enabled',
202-
vscode.DiagnosticSeverity.Error
202+
vscode.DiagnosticSeverity.Warning
203203
)
204204
);
205205
}

0 commit comments

Comments
 (0)