@@ -26,7 +26,7 @@ public ICollection<Diagnostic> LintDocument(TextDocument document, int maxNumber
26
26
{
27
27
diag . Add ( new Diagnostic ( DiagnosticSeverity . Hint ,
28
28
new Range ( new Position ( 0 , 0 ) , document . PositionAt ( content ? . Length ?? 0 ) ) ,
29
- "DLS0001" , "Empty document. Try typing something, such as \" .net core\" ." , "DLS ") ) ;
29
+ "DLS" , " DLS0001", "Empty document. Try typing something, such as \" .net core\" ." ) ) ;
30
30
return diag ;
31
31
}
32
32
foreach ( var kw in Keywords )
@@ -43,13 +43,11 @@ public ICollection<Diagnostic> LintDocument(TextDocument document, int maxNumber
43
43
if ( inputKw != kw )
44
44
{
45
45
diag . Add ( new Diagnostic ( DiagnosticSeverity . Warning ,
46
- new Range ( document . PositionAt ( pos ) , document . PositionAt ( separatorPos ) ) ,
47
- "DLS1001" , $ "\" { inputKw } \" should be \" { kw } \" .", "DLS" ) ) ;
46
+ new Range ( document . PositionAt ( pos ) , document . PositionAt ( separatorPos ) ) , "DLS" , "DLS1001" , $ "\" { inputKw } \" should be \" { kw } \" .") ) ;
48
47
if ( diag . Count >= maxNumberOfProblems )
49
48
{
50
49
diag . Add ( new Diagnostic ( DiagnosticSeverity . Information ,
51
- new Range ( document . PositionAt ( pos ) , document . PositionAt ( separatorPos ) ) ,
52
- "DLS2001" , "Too many messages, exiting…" , "DLS" ) ) ;
50
+ new Range ( document . PositionAt ( pos ) , document . PositionAt ( separatorPos ) ) , "DLS" , "DLS2001" , "Too many messages, exiting…" ) ) ;
53
51
return diag ;
54
52
}
55
53
}
0 commit comments