Skip to content

Commit 242619c

Browse files
committed
Reduce aggressiveness of While...Wend diagnostic
1 parent 3f9f4e7 commit 242619c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/src/test/diagnostics.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ suite('Should get diagnostics', () => {
7676
{
7777
message: 'The Do...Loop statement provides a more structured and flexible way to perform looping.',
7878
range: toRange(10, 4, 10, 8),
79-
severity: vscode.DiagnosticSeverity.Information,
79+
severity: vscode.DiagnosticSeverity.Hint,
8080
source: 'ex'
8181
},
8282
{
@@ -124,7 +124,7 @@ suite('Should get diagnostics', () => {
124124
{
125125
message: 'The Do...Loop statement provides a more structured and flexible way to perform looping.',
126126
range: toRange(19, 4, 19, 8),
127-
severity: vscode.DiagnosticSeverity.Information,
127+
severity: vscode.DiagnosticSeverity.Hint,
128128
source: 'ex'
129129
},
130130
{

server/src/capabilities/diagnostics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class MultipleOperatorsDiagnostic extends BaseDiagnostic {
3232

3333
export class WhileWendDeprecatedDiagnostic extends BaseDiagnostic {
3434
message = "The Do...Loop statement provides a more structured and flexible way to perform looping.";
35-
severity = DiagnosticSeverity.Information;
35+
severity = DiagnosticSeverity.Hint;
3636
constructor(range: Range) {
3737
super(Range.create(range.start, Position.create(range.start.line, range.start.character + 4)));
3838
}

0 commit comments

Comments
 (0)