@@ -26,7 +26,7 @@ public ICollection<Diagnostic> LintDocument(TextDocument document, int maxNumber
2626 {
2727 diag . Add ( new Diagnostic ( DiagnosticSeverity . Hint ,
2828 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\" ." ) ) ;
3030 return diag ;
3131 }
3232 foreach ( var kw in Keywords )
@@ -43,13 +43,11 @@ public ICollection<Diagnostic> LintDocument(TextDocument document, int maxNumber
4343 if ( inputKw != kw )
4444 {
4545 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 } \" .") ) ;
4847 if ( diag . Count >= maxNumberOfProblems )
4948 {
5049 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…" ) ) ;
5351 return diag ;
5452 }
5553 }
0 commit comments